@@ -12,6 +12,7 @@ my $kb = KeyBag.new(<Come, take your bread with joy, and your wine with a glad h
12
12
13
13
# Is an element of
14
14
15
+ # ?rakudo 5 skip "β NYI"
15
16
ok " afraid" β $ s , " afraid is an element of Set" ;
16
17
ok " afraid" β $ ks , " afraid is an element of KeySet" ;
17
18
ok " earthly" β $ b , " earthly is an element of Bag" ;
@@ -26,6 +27,7 @@ ok "d" (elem) <a b c d e>, "d is an element of a b c d e (texas)";
26
27
27
28
# Is not an element of
28
29
30
+ # ?rakudo 5 skip "β NYI"
29
31
ok " marmoset" β $ s , " marmoset is not an element of Set" ;
30
32
ok " marmoset" β $ ks , " marmoset is not an element of KeySet" ;
31
33
ok " marmoset" β $ b , " marmoset is not an element of Bag" ;
@@ -40,6 +42,7 @@ ok "hogwash" !(elem) <a b c d e>, "hogwash is not an element of a b c d e (texas
40
42
41
43
# Contains
42
44
45
+ # ?rakudo 5 skip "β NYI"
43
46
ok $ s β " afraid" , " afraid is contained by Set" ;
44
47
ok $ ks β " afraid" , " afraid is contained by KeySet" ;
45
48
ok $ b β " earthly" , " earthly is contained by Bag" ;
@@ -54,6 +57,7 @@ ok <a b c d e> (cont) "d", "d is contained by a b c d e";
54
57
55
58
# Does not contain
56
59
60
+ # ?rakudo 5 skip "β NYI"
57
61
ok $ s β " marmoset" , " marmoset is not contained by Set" ;
58
62
ok $ ks β " marmoset" , " marmoset is not contained by KeySet" ;
59
63
ok $ b β " marmoset" , " marmoset is not contained by Bag" ;
@@ -68,11 +72,13 @@ ok <a b c d e> !(cont) "marmoset", "marmoset is not contained by a b c d e";
68
72
69
73
# Union
70
74
75
+ # ?rakudo 4 skip "βͺ NYI"
71
76
is showset($ s βͺ $ s ), showset($ s ), " Set union with itself yields self" ;
72
77
isa_ok ($ s βͺ $ s ), Set , " ... and it's actually a Set" ;
73
78
is showset($ ks βͺ $ ks ), showset($ ks ), " KeySet union with itself yields self (as Set)" ;
74
79
isa_ok ($ ks βͺ $ ks ), Set , " ... and it's actually a Set" ;
75
80
81
+ # ?rakudo 4 skip "βͺ NYI"
76
82
is showset($ s βͺ $ ks ), showset(set <I'm afraid it is isn't your day >), " Set union with KeySet works" ;
77
83
isa_ok ($ s βͺ $ ks ), Set , " ... and it's actually a Set" ;
78
84
is showset($ ks βͺ <blue green >), showset(set <I'm afraid it is blue green >), " KeySet union with array of strings works" ;
@@ -85,11 +91,11 @@ isa_ok ($ks (|) <blue green>), Set, "... and it's actually a Set (texas)";
85
91
86
92
# Intersection
87
93
94
+ # ?rakudo 6 skip "β© NYI"
88
95
is showset($ s β© $ s ), showset($ s ), " Set intersection with itself yields self" ;
89
96
isa_ok ($ s β© $ s ), Set , " ... and it's actually a Set" ;
90
97
is showset($ ks β© $ ks ), showset($ ks ), " KeySet intersection with itself yields self (as Set)" ;
91
98
isa_ok ($ ks β© $ ks ), Set , " ... and it's actually a Set" ;
92
-
93
99
is showset($ s β© $ ks ), showset(set <I'm afraid it >), " Set intersection with KeySet works" ;
94
100
isa_ok ($ s β© $ ks ), Set , " ... and it's actually a Set" ;
95
101
@@ -98,6 +104,7 @@ isa_ok ($s (&) $ks), Set, "... and it's actually a Set (texas)";
98
104
99
105
# set subtraction
100
106
107
+ # ?rakudo skip "β
NYI"
101
108
is showset($ s (-) $ s ), showset(β
), " Set subtracted from Set is correct" ;
102
109
isa_ok ($ s (-) $ s ), Set , " ... and it's actually a Set" ;
103
110
@@ -118,6 +125,7 @@ isa_ok ($kb (-) $s), Set, "... and it's actually a Set";
118
125
119
126
# symmetric difference
120
127
128
+ # ?rakudo skip "β
NYI"
121
129
is showset($ s (^) $ s ), showset(β
), " Set symmetric difference with Set is correct" ;
122
130
isa_ok ($ s (^) $ s ), Set , " ... and it's actually a Set" ;
123
131
@@ -138,6 +146,7 @@ isa_ok ($kb (^) $s), Set, "... and it's actually a Set";
138
146
139
147
# is subset of
140
148
149
+ # ?rakudo 12 skip "β NYI"
141
150
ok <your day > β $ s , " 'Your day' is subset of Set" ;
142
151
ok $ s β $ s , " Set is subset of itself" ;
143
152
ok $ s β <I'm afraid it isn't your day old chum >, " Set is subset of string" ;
@@ -172,6 +181,7 @@ nok $kb (<=) $s, "KeyBag is not a subset of Set (texas)";
172
181
173
182
# is not a subset of
174
183
184
+ # ?rakudo 12 skip "β NYI"
175
185
nok <your day > β $ s , " 'Your day' is subset of Set" ;
176
186
nok $ s β $ s , " Set is subset of itself" ;
177
187
nok $ s β <I'm afraid it isn't your day old chum >, " Set is subset of string" ;
@@ -206,6 +216,7 @@ ok $kb !(<=) $s, "KeyBag is not a subset of Set (texas)";
206
216
207
217
# is proper subset of
208
218
219
+ # ?rakudo 12 skip "β NYI"
209
220
ok <your day > β $ s , " 'Your day' is proper subset of Set" ;
210
221
nok $ s β $ s , " Set is not proper subset of itself" ;
211
222
ok $ s β <I'm afraid it isn't your day old chum >, " Set is proper subset of string" ;
@@ -240,6 +251,7 @@ nok $kb (<) $s, "KeyBag is not a proper subset of Set (texas)";
240
251
241
252
# is not a proper subset of
242
253
254
+ # ?rakudo 12 skip "β NYI"
243
255
nok <your day > β $ s , " 'Your day' is proper subset of Set" ;
244
256
ok $ s β $ s , " Set is not proper subset of itself" ;
245
257
nok $ s β <I'm afraid it isn't your day old chum >, " Set is proper subset of string" ;
@@ -274,6 +286,7 @@ ok $kb !(<) $s, "KeyBag is not a proper subset of Set (texas)";
274
286
275
287
# is superset of
276
288
289
+ # ?rakudo 12 skip "β NYI"
277
290
ok <your day > Rβ $ s , " 'Your day' is reversed superset of Set" ;
278
291
ok $ s Rβ $ s , " Set is reversed superset of itself" ;
279
292
ok $ s Rβ <I'm afraid it isn't your day old chum >, " Set is reversed superset of string" ;
@@ -308,6 +321,7 @@ nok $kb R(>=) $s, "KeyBag is not a reversed superset of Set (texas)";
308
321
309
322
# is not a superset of
310
323
324
+ # ?rakudo 12 skip "β NYI"
311
325
nok <your day > Rβ $ s , " 'Your day' is reversed superset of Set" ;
312
326
nok $ s Rβ $ s , " Set is reversed superset of itself" ;
313
327
nok $ s Rβ <I'm afraid it isn't your day old chum >, " Set is reversed superset of string" ;
@@ -342,6 +356,7 @@ ok $kb !R(>=) $s, "KeyBag is not a reversed superset of Set (texas)";
342
356
343
357
# is proper superset of
344
358
359
+ # ?rakudo 12 skip "β NYI"
345
360
ok <your day > Rβ $ s , " 'Your day' is reversed proper superset of Set" ;
346
361
nok $ s Rβ $ s , " Set is not reversed proper superset of itself" ;
347
362
ok $ s Rβ <I'm afraid it isn't your day old chum >, " Set is reversed proper superset of string" ;
@@ -376,6 +391,7 @@ nok $kb R(>) $s, "KeyBag is not a reversed proper superset of Set (texas)";
376
391
377
392
# is not a proper superset of
378
393
394
+ # ?rakudo 12 skip "β
NYI"
379
395
nok <your day > Rβ
$ s , " 'Your day' is reversed proper superset of Set" ;
380
396
ok $ s Rβ
$ s , " Set is not reversed proper superset of itself" ;
381
397
nok $ s Rβ
<I'm afraid it isn't your day old chum >, " Set is reversed proper superset of string" ;
0 commit comments