@@ -95,37 +95,34 @@ sub gen_hash {
95
95
is @ a . elems , 10 , " basic sanity" ;
96
96
97
97
# ?niecza 4 skip "no adverbials"
98
- # ?rakudo 2 todo ":exists is ignored"
99
98
isa_ok @ a [ 3 ]: exists , Bool , " Bool test for exists single element" ;
100
99
isa_ok @ a [10 ]: exists , Bool , " Bool test for non-exists single element" ;
101
100
ok @ a [ 3 ]: exists , " Test for exists single element" ;
102
101
ok ! (@ a [10 ]: exists ), " Test for non-exists single element" ;
103
102
104
103
# ?niecza 10 skip "no adverbials"
105
- ok @ a [ 9 ]:! exists , " Test non-exists with ! single elem 9" ;
106
- ok ! ( @ a [10 ]:! exists ), " Test non-exists with ! single elem 10" ;
107
- ok @ a [ 9 ]: exists (0 ), " Test non-exists with (0) single elem 9" ;
108
- ok ! ( @ a [10 ]: exists (0 )), " Test non-exists with (0) single elem 10" ;
109
- ok @ a [ 9 ]: exists (False ), " Test non-exists with (False) single elem 9" ;
110
- ok ! ( @ a [10 ]: exists (False )), " Test non-exists with (False) single elem 10" ;
111
- ok @ a [ 9 ]: exists ($ dont ), " Test non-exists with (\$dont) single elem 9" ;
112
- ok ! ( @ a [10 ]: exists ($ dont )), " Test non-exists with (\$dont) single elem 10" ;
104
+ ok ! ( @ a [ 9 ]:! exists ), " Test non-exists with ! single elem 9" ;
105
+ ok @ a [10 ]:! exists , " Test non-exists with ! single elem 10" ;
106
+ ok ! ( @ a [ 9 ]: exists (0 )), " Test non-exists with (0) single elem 9" ;
107
+ ok @ a [10 ]: exists (0 ), " Test non-exists with (0) single elem 10" ;
108
+ ok ! ( @ a [ 9 ]: exists (False )), " Test non-exists with (False) single elem 9" ;
109
+ ok @ a [10 ]: exists (False ), " Test non-exists with (False) single elem 10" ;
110
+ ok ! ( @ a [ 9 ]: exists ($ dont )), " Test non-exists with (\$dont) single elem 9" ;
111
+ ok @ a [10 ]: exists ($ dont ), " Test non-exists with (\$dont) single elem 10" ;
113
112
ok @ a [ 9 ]: exists (1 ), " Test exists with (1) single elem 9" ;
114
113
ok ! (@ a [10 ]: exists (1 )), " Test exists with (1) single elem 10" ;
115
114
116
- # ?rakudo 6 todo "[]:exists NYI"
117
- is_deeply @ a [1 ,2 , 4 ]: exists , (True , True , True ), " Test exists TTT" ;
118
- is_deeply @ a [1 ,2 ,10 ]: exists , (True , True , False ), " Test exists TTF" ;
119
- is_deeply @ a [* ]: exists , (True xx 26 ). Parcel, " Test non-exists T*" ;
115
+ is_deeply @ a [1 ,2 , 4 ]: exists , (True , True , True ), " Test exists TTT" ;
116
+ is_deeply @ a [1 ,2 ,10 ]: exists , (True , True , False ), " Test exists TTF" ;
117
+ is_deeply (@ a [* ]: exists ). list, True xx 10 , " Test non-exists T*" ;
120
118
# ?niezca 3 todo "adverbial pairs only used as True"
121
- is_deeply @ a [1 ,2 , 4 ]:! exists , (False ,False ,False ), " Test non-exists FFF" ;
122
- is_deeply @ a [1 ,2 ,10 ]:! exists , (False ,False ,True ), " Test non-exists FFT" ;
123
- is_deeply @ a [* ]:! exists , ( False xx 26 ) . Parcel, " Test non-exists F*" ;
119
+ is_deeply @ a [1 ,2 , 4 ]:! exists , (False ,False ,False ), " Test non-exists FFF" ;
120
+ is_deeply @ a [1 ,2 ,10 ]:! exists , (False ,False ,True ), " Test non-exists FFT" ;
121
+ is_deeply ( @ a [* ]:! exists ) . list, False xx 10 , " Test non-exists F*" ;
124
122
125
- # ?rakudo 6 todo "[]:exists:kv NYI"
126
123
# ?niezca 6 todo "no combined adverbial pairs"
127
124
is_deeply @ a [1 ,2 , 4 ]: exists : kv,
128
- (1 ,True ,2 ,True ,3 ,True ), " Test exists:kv TTT" ;
125
+ (1 ,True ,2 ,True ,4 ,True ), " Test exists:kv TTT" ;
129
126
is_deeply @ a [1 ,2 ,10 ]: exists : kv,
130
127
(1 ,True ,2 ,True ), " Test exists:kv TT." ;
131
128
is_deeply @ a [1 ,2 ,10 ]: exists :! kv ,
@@ -137,10 +134,9 @@ sub gen_hash {
137
134
is_deeply @ a [1 ,2 ,10 ]:! exists :! kv ,
138
135
(1 ,False ,2 ,False ,10 ,True ), " Test exists:kv FFT" ;
139
136
140
- # ?rakudo 6 todo "[]:exists:p NYI"
141
137
# ?niezca 6 todo "no combined adverbial pairs"
142
138
is_deeply @ a [1 ,2 , 4 ]: exists : p,
143
- (1 => True ,2 => True ,3 => True ), " Test exists:p TTT" ;
139
+ (1 => True ,2 => True ,4 => True ), " Test exists:p TTT" ;
144
140
is_deeply @ a [1 ,2 ,10 ]: exists : p,
145
141
(1 => True ,2 => True ), " Test exists:p TT." ;
146
142
is_deeply @ a [1 ,2 ,10 ]: exists :! p,
0 commit comments