Skip to content

Commit 0a99146

Browse files
committed
TEST: fixed test
1 parent ee9b2a5 commit 0a99146

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/tests/units/module-test.r3

+6-4
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ supplement system/options/module-paths join what-dir %units/files/
2727
]
2828

2929
--test-- "export"
30+
;-- Note: using tests against user's context, because the unit tests are called using `wrap` which
31+
;-- callects and binds all set-words used in modules code bellow and so values are not imported.
3032
;@@ https://github.com/Oldes/Rebol-issues/issues/689
3133
;@@ https://github.com/Oldes/Rebol-issues/issues/1446
3234
unset in system/contexts/user 'a
@@ -89,13 +91,13 @@ supplement system/options/module-paths join what-dir %units/files/
8991
;@@ https://github.com/Oldes/Rebol-issues/issues/1007
9092
m: module [] [a: 1 2]
9193
--assert 1 = m/a
92-
unset 'a
94+
unset in system/contexts/user 'a
9395
m: module [exports: [a]] [a: 1 2]
9496
--assert 1 = m/a
95-
--assert unset? :a
97+
--assert unset? :system/contexts/user/a
9698
import (m)
97-
--assert 1 = :a
98-
unset 'a
99+
--assert 1 = :system/contexts/user/a
100+
unset in system/contexts/user 'a
99101

100102
===end-group===
101103

0 commit comments

Comments
 (0)