Update Unicode docs
[factor/jcg.git] / basis / locals / backend / backend-tests.factor
blobee714f7ef76cf731997c1bc0c26ee60f7a5443db
1 IN: locals.backend.tests
2 USING: tools.test locals.backend kernel arrays ;
4 : get-local-test-1 ( -- x ) 3 1 load-locals 0 get-local 1 drop-locals ;
6 \ get-local-test-1 must-infer
8 [ 3 ] [ get-local-test-1 ] unit-test
10 : get-local-test-2 ( -- x ) 3 4 2 load-locals -1 get-local 2 drop-locals ;
12 \ get-local-test-2 must-infer
14 [ 3 ] [ get-local-test-2 ] unit-test