We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa183b9 commit fe08fcbCopy full SHA for fe08fcb
src/tests/units/protect-test.r3
@@ -11,7 +11,7 @@ Rebol [
11
===start-group=== "Checks if protected data are really protected"
12
bin: #{cafe}
13
str: "cafe"
14
- blk: "cafe"
+ blk: ["cafe"]
15
protect/values [bin str blk]
16
17
is-protected-error?: function[code][
@@ -35,6 +35,10 @@ Rebol [
35
--test-- "random string" --assert is-protected-error? [random str]
36
--test-- "random binary" --assert is-protected-error? [random bin]
37
38
+ --test-- "swap block" --assert is-protected-error? [swap blk [0]]
39
+ --test-- "swap string" --assert is-protected-error? [swap str "0bad"]
40
+ --test-- "swap binary" --assert is-protected-error? [swap bin #{0bad}]
41
+
42
===end-group===
43
44
~~~end-file~~~
0 commit comments