diff options
Diffstat (limited to 'tests/test_core.py')
-rw-r--r-- | tests/test_core.py | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/tests/test_core.py b/tests/test_core.py index 55cf142e..5b3a64dd 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -3574,20 +3574,10 @@ ok self.do_run(src, expected) def test_transtrcase(self): - src = ''' - #include <stdio.h> - #include <string.h> - int main() { - char szToupr[] = "hello, "; - char szTolwr[] = "EMSCRIPTEN"; - strupr(szToupr); - strlwr(szTolwr); - printf(szToupr); - printf(szTolwr); - return 0; - } - ''' - self.do_run(src, 'HELLO, emscripten') + test_path = path_from_root('tests', 'core', 'test_transtrcase') + src, output = (test_path + s for s in ('.in', '.out')) + + self.do_run_from_file(src, output) def test_printf(self): if Settings.USE_TYPED_ARRAYS != 2: return self.skip('i64 mode 1 requires ta2') |