repo.or.cz
/
factor
/
jcg.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
remove math.blas.syntax and merge parsing words into math.blas.vectors/matrices
[factor/jcg.git]
/
core
/
namespaces
/
namespaces-tests.factor
blob
4c11e2389f1605ebeb1679d59b8be01c6e03c702
1
USING: kernel namespaces tools.test words ;
2
IN: namespaces.tests
3
4
H{ } clone "test-namespace" set
5
6
: test-namespace ( -- )
7
H{ } clone dup [ namespace = ] bind ;
8
9
[ t ] [ test-namespace ] unit-test
10
11
10 "some-global" set
12
[ f ]
13
[ H{ } clone [ f "some-global" set "some-global" get ] bind ]
14
unit-test