Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 31 lines (22 sloc) 0.729 kb
a238d44b »
2009-12-18 [t/spec] rename true to so
1 use v6;
2 use Test;
d6f41fbb »
2011-01-05 test for RT #78788
3 plan 15;
a238d44b »
2009-12-18 [t/spec] rename true to so
4
5 # L<S03/Loose unary precedence>
6
7 ok(so 1, "so 1 is true");
8 ok(so -1, "so -1 is true");
9 ok(not so 0, "not so 0 is true");
10 ok(so sub{}, 'so sub{} is true');
11 ok(so "x", 'so "x" is true');
12
13 my $a = 1; ok(so $a, 'so $true_var is true');
14 my $b = 0; ok(!(so $b), 'so $false_var is not true');
15
16 ok( so(so 42), "so(so 42) is true");
17 ok(not so(so 0), "so(so 0) is false");
18
19 ok(so Bool::True, "'Bool::True' is true");
4bdf17ed »
2011-09-29 Convert niecza faux-todo to real todo.
20 #?niecza todo
d6f41fbb »
2011-01-05 test for RT #78788
21 ok Bool.so === False, 'Bool.so returns false';
a238d44b »
2009-12-18 [t/spec] rename true to so
22 ok(so True, "'True' is true");
23
29b04a98 »
2010-09-23 fix tests for Bool stringification
24 #?rakudo todo 'check test and rakudo'
54069153 »
2010-03-15 [t/spec] Additional test for so. New test file for !op metaop. Move s…
25 is (so($b) + 1), ((so $b) + 1), 'so($b) is (so $b)';
26
00b57a58 »
2010-07-28 [t/spec] so my $x = 3, RT #73352
27 ok (so my $x = 5), 'so + declaration';
28 is $x, 5, 'assignment after so worked';
29
ea847c7f »
2010-09-22 remove more wrong uses of True and False as 0 and 1 (still more left)…
30 # vim: ft=perl6
Something went wrong with that request. Please try again.