File tree 2 files changed +19
-1
lines changed
2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 600
600
601
601
case A_PICK :
602
602
case A_FIND :
603
- if (!Check_Bits (VAL_SERIES (value ), arg ,(action == A_FIND && D_REF (ARG_FIND_CASE )) ))
603
+ if (!Check_Bits (VAL_SERIES (value ), arg ,(IS_CHAR ( arg ) && action == A_FIND && ! D_REF (ARG_FIND_CASE )) ))
604
604
#ifdef PICK_BITSET_AS_NONE
605
605
return R_NONE ;
606
606
#else
Original file line number Diff line number Diff line change 208
208
===end-group===
209
209
210
210
211
+ ===start-group=== "find"
212
+ --test-- "find bitset! char!"
213
+ ;@@ https://github.com/Oldes/Rebol-issues/issues/2166
214
+ ABC: charset [#"A" #"B" #"C" ]
215
+ --assert find ABC #"a"
216
+ --assert find ABC #"A"
217
+ --assert find/case ABC #"A"
218
+ --assert not find/case ABC #"a"
219
+ ; finding integer value is always case-sensitive
220
+ --assert find ABC to-integer #"A"
221
+ --assert not find ABC to-integer #"a"
222
+ ; pick is always case-sensitive
223
+ --assert pick ABC #"A"
224
+ --assert not pick ABC #"a"
225
+
226
+ ===end-group===
227
+
228
+
211
229
===start-group=== "complemented"
212
230
213
231
--test-- "comp-1" --assert "make bitset! [not bits #{}]" = mold charset [not]
You can’t perform that action at this time.
0 commit comments