]> gitweb.factorcode.org Git - factor.git/blob - extra/c/preprocessor/preprocessor-tests.factor
nested-comments: remove this vocab. we have /* */ which is good enough for now.
[factor.git] / extra / c / preprocessor / preprocessor-tests.factor
1 ! Copyright (C) 2009 Doug Coleman.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: tools.test c.preprocessor kernel accessors multiline ;
4 IN: c.preprocessor.tests
5
6 [ "vocab:c/tests/test1/test1.c" start-preprocess-file ]
7 [ include-nested-too-deeply? ] must-fail-with
8
9 { "yo\n\n\n\nyo4\n" }
10 [ "vocab:c/tests/test2/test2.c" start-preprocess-file nip ] unit-test
11
12 /*
13 [ "vocab:c/tests/test3/test3.c" start-preprocess-file ]
14 [ "\"BOO\"" = ] must-fail-with
15 */
16
17 { V{ "\"omg\"" "\"lol\"" } }
18 [ "vocab:c/tests/test4/test4.c" start-preprocess-file drop warnings>> ] unit-test