Use windows-1252 encoding for stdin/stdout on Windows
[factor/jcg.git] / core / definitions / definitions-tests.factor
blobb2d265a2e3cf3a43032f048171b36086109f8f5a
1 USING: tools.test generic kernel definitions sequences
2 compiler.units words ;
3 IN: definitions.tests
5 GENERIC: some-generic ( a -- b )
7 USE: arrays
9 M: array some-generic ;
11 USE: bit-arrays
13 M: bit-array some-generic ;
15 USE: byte-arrays
17 M: byte-array some-generic ;
19 TUPLE: some-class ;
21 M: some-class some-generic ;
23 TUPLE: another-class some-generic ;
25 [ ] [
26     [
27         {
28             some-generic
29             some-class
30             { another-class some-generic }
31         } forget-all
32     ] with-compilation-unit
33 ] unit-test