1 USING: arrays generic kernel math models namespaces sequences assocs
\r
2 tools.test models.mapping accessors ;
\r
3 IN: models.mapping.tests
\r
14 [ ] [ "m" get activate-model ] unit-test
\r
16 [ H{ { "one" 1 } { "two" 2 } } ] [
\r
21 H{ { "one" 3 } { "two" 4 } }
\r
25 [ H{ { "one" 3 } { "two" 4 } } ] [
\r
29 [ H{ { "one" 5 } { "two" 4 } } ] [
\r
30 5 "one" "m" get assoc>> at set-model
\r
34 [ ] [ "m" get deactivate-model ] unit-test
\r