]> gitweb.factorcode.org Git - factor.git/blob - basis/inspector/inspector-tests.factor
factor: Retrying on the unit tests. Also normalize some syntax with FUNCTION:.
[factor.git] / basis / inspector / inspector-tests.factor
1 USING: kernel tools.test math namespaces prettyprint
2 sequences inspector io.streams.string ;
3 IN: inspector.tests
4
5 [ 1 2 3 ] describe
6 f describe
7 \ + describe
8 H{ } describe
9 H{ } describe
10
11 { "fixnum\n\n" } [ [ 3 describe ] with-string-writer ] unit-test
12
13 { } [ H{ } clone inspect ] unit-test
14
15 { } [ "a" "b" &add ] unit-test
16
17 { H{ { "b" "a" } } } [ me get ] unit-test
18
19 { } [ "x" 0 &put ] unit-test
20
21 { H{ { "b" "x" } } } [ me get ] unit-test
22
23 { } [ 0 &at ] unit-test
24
25 { "x" } [ me get ] unit-test
26
27 { } [ &back ] unit-test
28
29 { } [ "y" 0 &rename ] unit-test
30
31 { H{ { "y" "x" } } } [ me get ] unit-test
32
33 { } [ 0 &delete ] unit-test
34
35 { H{ } } [ me get ] unit-test