Merge branch 'master' of git://factorcode.org/git/factor
[factor/jcg.git] / basis / inspector / inspector-tests.factor
blobc2303643423858235bdb6721c23d21218d272c68
1 USING: kernel tools.test math namespaces prettyprint
2 sequences inspector io.streams.string ;
3 IN: inspector.tests
5 [ 1 2 3 ] describe
6 f describe
7 \ + describe
8 H{ } describe
9 H{ } describe
11 [ "fixnum instance\n" ] [ [ 3 describe ] with-string-writer ] unit-test
13 [ ] [ inspector-hook get-global inspector-hook set ] unit-test
15 [ ] [ H{ } clone inspect ] unit-test
17 [ ] [ "a" "b" &add ] unit-test
19 [ H{ { "b" "a" } } ] [ me get ] unit-test
21 [ ] [ "x" 0 &put ] unit-test
23 [ H{ { "b" "x" } } ] [ me get ] unit-test
25 [ ] [ 0 &at ] unit-test
27 [ "x" ] [ me get ] unit-test
29 [ ] [ &back ] unit-test
31 [ ] [ "y" 0 &rename ] unit-test
33 [ H{ { "y" "x" } } ] [ me get ] unit-test
35 [ ] [ 0 &delete ] unit-test
37 [ H{ } ] [ me get ] unit-test