File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ static void No_Nones_Or_Logic(REBVAL *arg) {
119
119
value = BLK_SKIP (series , index );
120
120
if (ANY_WORD (value )) {
121
121
cnt = (VAL_WORD_SYM (value ) == VAL_WORD_SYM (target ));
122
- if (flags & AM_FIND_CASE ) {
122
+ if (flags & ( AM_FIND_CASE | AM_FIND_SAME ) ) {
123
123
// Must be same type and spelling:
124
124
if (cnt && VAL_TYPE (value ) == VAL_TYPE (target )) return index ;
125
125
}
Original file line number Diff line number Diff line change @@ -77,6 +77,14 @@ Rebol [
77
77
--assert 2 = index? find b :obj1
78
78
--assert 2 = index? find b :obj2
79
79
--assert 2 = index? find/case b :obj2 ;/case is not /same in this case
80
+ b: [a a: 'a :a ]
81
+ --assert 1 = index? find/same b b/1
82
+ --assert 2 = index? find/same b b/2
83
+ --assert 3 = index? find/same b b/3
84
+ --assert 4 = index? find/same b b/4
85
+ --assert 1 = index? find b b/1
86
+ --assert 1 = index? find b b/2
87
+ --assert 1 = index? find b b/3
80
88
81
89
--test-- "FIND/SAME in string!"
82
90
--assert "AbcdAe" = find/same "aAbcdAe" "A"
You can’t perform that action at this time.
0 commit comments