Skip to content

Commit b15122f

Browse files
committed
Tests for ≤ ≥ ≠ unicode ops
1 parent c4364a8 commit b15122f

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

S03-operators/misc.t

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use Test;
77
Tests for Synopsis 3
88
=end kwid
99

10-
plan 44;
10+
plan 55;
1111

1212
my $str1 = "foo";
1313
my $str2 = "bar";
@@ -145,6 +145,23 @@ is (2 Z 3), @z, 'joining of single items';
145145

146146
#?rakudo.jvm skip 'Bogus term'
147147
is 2 ÷ 3, ⅔, "we have infix DIVISION SIGN";
148+
149+
ok 423, 'we have infix LESS-THAN OR EQUAL TO';
150+
ok 168, 'we have infix GREATER-THAN OR EQUAL TO';
151+
ok 1542, 'we have infix NOT EQUAL TO';
152+
153+
nok 423, 'we have infix LESS-THAN OR EQUAL TO (not always True)';
154+
nok 168, 'we have infix GREATER-THAN OR EQUAL TO (not always True)';
155+
nok 4242, 'we have infix NOT EQUAL TO (not always True)';
156+
157+
ok -5-4-3, 'unicode op chaining';
158+
ok 543, 'unicode op chaining';
159+
ok -3-41, 'unicode op chaining';
160+
161+
ok 4 < 815 <= 16 != 23 ≠ 42 == 42 ≠ 23 != 16 >= 158 > 4,
162+
'unicode ops chain with texas ones';
163+
nok 4 < 815 <= 16 != 23 ≠ 42 == 42 ≠ 23 != 16 >= 15 ≥ ∞ > 4,
164+
'unicode ops chain with texas ones (not always True)';
148165
}
149166

150167
# vim: ft=perl6

0 commit comments

Comments
 (0)