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
6 [ "vocab:c/tests/test1/test1.c" start-preprocess-file ]
7 [ include-nested-too-deeply? ] must-fail-with
10 [ "vocab:c/tests/test2/test2.c" start-preprocess-file nip ] unit-test
13 [ "vocab:c/tests/test3/test3.c" start-preprocess-file ]
14 [ "\"BOO\"" = ] must-fail-with
17 { V{ "\"omg\"" "\"lol\"" } }
18 [ "vocab:c/tests/test4/test4.c" start-preprocess-file drop warnings>> ] unit-test