1
+ Rebol [
2
+ Title: "Rebol3 known (not yet fixed) issues"
3
+ Author: "Oldes, Peter W A Wood"
4
+ File: %word-test.r3
5
+ Tabs: 4
6
+ Needs: [%../quick-test-module.r3 ]
7
+ ]
8
+
9
+ ~~~start-file~~~ "KNOWN PROBLEMS!"
10
+
11
+ ===start-group=== "MAP"
12
+ ;@@ https://github.com/Oldes/Rebol-issues/issues/1872
13
+ --test-- "map-issue-1872"
14
+ m: map [a: 42 ]
15
+ protect m
16
+ --assert protected? 'm/a ;@@ <--- fails!
17
+
18
+ ===end-group===
19
+
20
+
21
+ ===start-group=== "SERIES"
22
+ --test-- "AS with protect"
23
+ b: protect [a b]
24
+ --assert path? try [p: as path! b]
25
+ --assert protected? b
26
+ --assert protected? p ;@@ <--- fails!
27
+ ===end-group===
28
+
29
+
30
+ ===start-group=== "PARSE"
31
+ --test-- "parse remove"
32
+ --assert parse v: "yx" [some [remove #"y" | #"x" ] ]
33
+ --assert v = "x"
34
+ --assert parse "yx" [copy v any [ remove #"y" | #"x" ] ]
35
+ --assert v = "x"
36
+ ===end-group===
37
+
38
+
39
+ ===start-group=== "TIME"
40
+ ;@@ https://github.com/Oldes/Rebol-issues/issues/2416
41
+ --test-- "time protect 1"
42
+ t: now /time protect 't
43
+ --assert error? e: try [t/hour: 0 ]
44
+ --assert e/id = 'locked-word
45
+ --test-- "time protect 2"
46
+ protect /words o: object [t: now /time ]
47
+ --assert error? e: try [o/t/hour: 0 ]
48
+ --assert e/id = 'locked-word
49
+ --test-- "time protect 3"
50
+ o: object [t: 1 protect /words o: object [t: now /time ]]
51
+ --assert protected? 'o/o/t
52
+ --assert protected? 'o/o/t/hour ;@@ <--- fails!
53
+ --assert error? e: try [o/o/t/hour: 0 ] ;@@ <--- fails!
54
+ ===end-group===
55
+
56
+
57
+ ===start-group=== "DATE"
58
+ ;@@ https://github.com/Oldes/Rebol-issues/issues/2416
59
+ --test-- "date protect 1"
60
+ d: now protect 'd
61
+ --assert error? e: try [d/year: 0 ]
62
+ --assert e/id = 'locked-word
63
+ unprotect 'd
64
+ --test-- "date protect 2"
65
+ protect /words o: object [d: now]
66
+ --assert error? e: try [o/d/year: 0 ]
67
+ --assert e/id = 'locked-word
68
+ --test-- "date protect 3"
69
+ o: object [d: 1 protect /words o: object [d: now]]
70
+ --assert protected? 'o/o/d
71
+ --assert protected? 'o/o/d/year ;@@ <--- fails!
72
+ --assert error? e: try [o/o/d/year: 0 ] ;@@ <--- fails!
73
+ ===end-group===
74
+
75
+
76
+ ===start-group=== "CRASH"
77
+ --test-- "issue-1865"
78
+ ;@@ https://github.com/Oldes/Rebol-issues/issues/1865
79
+ ;--assert object? resolve/extend/only context [] context [a1: a2: a3: a4: a5: a6: none] [a] ;- no crash!
80
+ ;-- PROBLEM! above code sometimes causes failed bind table check (using: `evoke 3`)
81
+ ;-- probably related to the next test too!
82
+
83
+ --test-- "issue-2017"
84
+ ;@@ https://github.com/Oldes/Rebol-issues/issues/2017
85
+ --assert object? resolve/extend/only context [] context [a: none] [a] ;- no crash!
86
+
87
+ ===end-group===
88
+
89
+ ~~~end-file~~~
0 commit comments