Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

test Buf boolification

  • Loading branch information...
commit a6c38c4df9d07ceac536f78b5a1b84d269ac6b16 1 parent c01e5d6
@moritz moritz authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 S03-operators/buf.t
View
4 S03-operators/buf.t
@@ -1,7 +1,7 @@
use v6;
use Test;
-plan 21;
+plan 23;
ok (~^"foo".encode eqv Buf.new(0x99, 0x90, 0x90)), 'prefix:<~^>';
@@ -34,3 +34,5 @@ is $a cmp $b, Order::Increase, 'cmp (smaller)';
is $b cmp $a, Order::Decrease, 'cmp (larger)';
is_deeply Buf.new(1, 2, 3) ~ Buf.new(4, 5), Buf.new(1, 2, 3, 4, 5), '~ concatenates';
+nok Buf.new(), 'empty Buf is false';
+ok Buf.new(1), 'non-empty Buf is true';
Please sign in to comment.
Something went wrong with that request. Please try again.