6 USING: cocoa compiler kernel objc namespaces objc-classes test memory ;
9 { { "foo:" "void" { "id" "SEL" "NSRect" } [ full-gc "x" set 2drop ] } }
14 dup 1.0 2.0 101.0 102.0 <NSRect> -> foo:
19 [ 1 ] [ "x" get NSRect-x ] unit-test
20 [ 2 ] [ "x" get NSRect-y ] unit-test
21 [ 101 ] [ "x" get NSRect-w ] unit-test
22 [ 102 ] [ "x" get NSRect-h ] unit-test
25 { { "bar" "NSRect" { "id" "SEL" } [ 2drop test-foo "x" get ] } }
34 [ 1 ] [ "x" get NSRect-x ] unit-test
35 [ 2 ] [ "x" get NSRect-y ] unit-test
36 [ 101 ] [ "x" get NSRect-w ] unit-test
37 [ 102 ] [ "x" get NSRect-h ] unit-test