@@ -27,11 +27,33 @@ Rebol [
27
27
;@@ https://github.com/Oldes/Rebol-issues/issues/237
28
28
--assert "23" = find "123" 2
29
29
30
+ --test-- "FIND string! binary!"
31
+ ;@@ https://github.com/Oldes/Rebol-issues/issues/1159
32
+ --assert "F00D" = find "id: F00D" #{ F00D }
33
+ --assert "F00D" = find "id: F00D" #{ f00d }
34
+
30
35
--test-- "FIND binary! binary!"
36
+ ;@@ https://github.com/Oldes/Rebol-issues/issues/1161
31
37
--assert #{ 0001 } = find/match #{ 0001 } #{ 00 }
32
38
--assert #{ 01 } = find/match/tail #{ 0001 } #{ 00 }
33
39
--assert #{ 02 } = find #{ 000102 } #{ 02 }
34
40
--assert #{} = find/tail #{ 000102 } #{ 02 }
41
+ --assert none? find/match #{ 0001 } #{ 01 }
42
+ --assert none? find/match/tail #{ 0001 } #{ 01 }
43
+ --assert none? find #{ 000102 } #{ 03 }
44
+ --assert none? find/tail #{ 000102 } #{ 03 }
45
+
46
+ --test-- "FIND binary! char!"
47
+ ;@@ https://github.com/Oldes/Rebol-issues/issues/1161
48
+ --assert tail? find/tail #{ 0063 } #"c"
49
+ --assert tail? find/tail #{ 0063 } #"^(63)"
50
+ --assert tail? find/tail #{ 00FF } #"^(ff)"
51
+ --assert none? find/tail #{ 0063 } #"C"
52
+ --assert none? find/tail #{ 0063 } #"^(700)"
53
+
54
+ --test-- "FIND binary! integer!"
55
+ --assert tail? find/tail #{ 0063 } 99
56
+ --assert error? try [find/tail #{ 0063 } 700 ]
35
57
36
58
--test-- "FIND string! tag!"
37
59
;@@ https://github.com/Oldes/Rebol-issues/issues/1160
0 commit comments