Skip to content

Commit aadc834

Browse files
committed
Fudge for rakudo.
1 parent fd42eb1 commit aadc834

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

β€ŽS03-operators/set.tβ€Ž

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ my $kb = KeyBag.new(<Come, take your bread with joy, and your wine with a glad h
1212

1313
# Is an element of
1414

15+
#?rakudo 5 skip "∈ NYI"
1516
ok "afraid" ∈ $s, "afraid is an element of Set";
1617
ok "afraid" ∈ $ks, "afraid is an element of KeySet";
1718
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)";
2627

2728
# Is not an element of
2829

30+
#?rakudo 5 skip "βˆ‰ NYI"
2931
ok "marmoset" βˆ‰ $s, "marmoset is not an element of Set";
3032
ok "marmoset" βˆ‰ $ks, "marmoset is not an element of KeySet";
3133
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
4042

4143
# Contains
4244

45+
#?rakudo 5 skip "βˆ‹ NYI"
4346
ok $s βˆ‹ "afraid", "afraid is contained by Set";
4447
ok $ks βˆ‹ "afraid", "afraid is contained by KeySet";
4548
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";
5457

5558
# Does not contain
5659

60+
#?rakudo 5 skip "∌ NYI"
5761
ok $s ∌ "marmoset", "marmoset is not contained by Set";
5862
ok $ks ∌ "marmoset", "marmoset is not contained by KeySet";
5963
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";
6872

6973
# Union
7074

75+
#?rakudo 4 skip "βˆͺ NYI"
7176
is showset($s βˆͺ $s), showset($s), "Set union with itself yields self";
7277
isa_ok ($s βˆͺ $s), Set, "... and it's actually a Set";
7378
is showset($ks βˆͺ $ks), showset($ks), "KeySet union with itself yields self (as Set)";
7479
isa_ok ($ks βˆͺ $ks), Set, "... and it's actually a Set";
7580

81+
#?rakudo 4 skip "βˆͺ NYI"
7682
is showset($s βˆͺ $ks), showset(set <I'm afraid it is isn't your day>), "Set union with KeySet works";
7783
isa_ok ($s βˆͺ $ks), Set, "... and it's actually a Set";
7884
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)";
8591

8692
# Intersection
8793

94+
#?rakudo 6 skip "∩ NYI"
8895
is showset($s ∩ $s), showset($s), "Set intersection with itself yields self";
8996
isa_ok ($s ∩ $s), Set, "... and it's actually a Set";
9097
is showset($ks ∩ $ks), showset($ks), "KeySet intersection with itself yields self (as Set)";
9198
isa_ok ($ks ∩ $ks), Set, "... and it's actually a Set";
92-
9399
is showset($s ∩ $ks), showset(set <I'm afraid it>), "Set intersection with KeySet works";
94100
isa_ok ($s ∩ $ks), Set, "... and it's actually a Set";
95101

@@ -98,6 +104,7 @@ isa_ok ($s (&) $ks), Set, "... and it's actually a Set (texas)";
98104

99105
# set subtraction
100106

107+
#?rakudo skip "βˆ… NYI"
101108
is showset($s (-) $s), showset(βˆ…), "Set subtracted from Set is correct";
102109
isa_ok ($s (-) $s), Set, "... and it's actually a Set";
103110

@@ -118,6 +125,7 @@ isa_ok ($kb (-) $s), Set, "... and it's actually a Set";
118125

119126
# symmetric difference
120127

128+
#?rakudo skip "βˆ… NYI"
121129
is showset($s (^) $s), showset(βˆ…), "Set symmetric difference with Set is correct";
122130
isa_ok ($s (^) $s), Set, "... and it's actually a Set";
123131

@@ -138,6 +146,7 @@ isa_ok ($kb (^) $s), Set, "... and it's actually a Set";
138146

139147
# is subset of
140148

149+
#?rakudo 12 skip "βŠ† NYI"
141150
ok <your day> βŠ† $s, "'Your day' is subset of Set";
142151
ok $s βŠ† $s, "Set is subset of itself";
143152
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)";
172181

173182
# is not a subset of
174183

184+
#?rakudo 12 skip "⊈ NYI"
175185
nok <your day> ⊈ $s, "'Your day' is subset of Set";
176186
nok $s ⊈ $s, "Set is subset of itself";
177187
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)";
206216

207217
# is proper subset of
208218

219+
#?rakudo 12 skip "βŠ‚ NYI"
209220
ok <your day> βŠ‚ $s, "'Your day' is proper subset of Set";
210221
nok $s βŠ‚ $s, "Set is not proper subset of itself";
211222
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)";
240251

241252
# is not a proper subset of
242253

254+
#?rakudo 12 skip "βŠ„ NYI"
243255
nok <your day> βŠ„ $s, "'Your day' is proper subset of Set";
244256
ok $s βŠ„ $s, "Set is not proper subset of itself";
245257
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)";
274286

275287
# is superset of
276288

289+
#?rakudo 12 skip "βŠ‡ NYI"
277290
ok <your day> RβŠ‡ $s, "'Your day' is reversed superset of Set";
278291
ok $s RβŠ‡ $s, "Set is reversed superset of itself";
279292
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)";
308321

309322
# is not a superset of
310323

324+
#?rakudo 12 skip "βŠ‰ NYI"
311325
nok <your day> RβŠ‰ $s, "'Your day' is reversed superset of Set";
312326
nok $s RβŠ‰ $s, "Set is reversed superset of itself";
313327
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)";
342356

343357
# is proper superset of
344358

359+
#?rakudo 12 skip "βŠƒ NYI"
345360
ok <your day> RβŠƒ $s, "'Your day' is reversed proper superset of Set";
346361
nok $s RβŠƒ $s, "Set is not reversed proper superset of itself";
347362
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)";
376391

377392
# is not a proper superset of
378393

394+
#?rakudo 12 skip "βŠ… NYI"
379395
nok <your day> RβŠ… $s, "'Your day' is reversed proper superset of Set";
380396
ok $s RβŠ… $s, "Set is not reversed proper superset of itself";
381397
nok $s RβŠ… <I'm afraid it isn't your day old chum>, "Set is reversed proper superset of string";

0 commit comments

Comments
Β (0)