diff options
-rw-r--r-- | tests/core/test_isdigit_l.in | 7 | ||||
-rw-r--r-- | tests/core/test_isdigit_l.out | 1 | ||||
-rw-r--r-- | tests/test_core.py | 12 |
3 files changed, 12 insertions, 8 deletions
diff --git a/tests/core/test_isdigit_l.in b/tests/core/test_isdigit_l.in new file mode 100644 index 00000000..b94f618d --- /dev/null +++ b/tests/core/test_isdigit_l.in @@ -0,0 +1,7 @@ + + #include <iostream> + int main() { + using namespace std; + use_facet<num_put<char> >(cout.getloc()).put(cout, cout, '0', 3.14159265); + } +
\ No newline at end of file diff --git a/tests/core/test_isdigit_l.out b/tests/core/test_isdigit_l.out new file mode 100644 index 00000000..2c0cac55 --- /dev/null +++ b/tests/core/test_isdigit_l.out @@ -0,0 +1 @@ +3.14159
\ No newline at end of file diff --git a/tests/test_core.py b/tests/test_core.py index d2e4909b..1bd82d41 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -1409,14 +1409,10 @@ class T(RunnerCore): # Short name, to make it more fun to use manually on the co def test_isdigit_l(self): if self.emcc_args is None: return self.skip('no libcxx inclusion without emcc') - src = ''' - #include <iostream> - int main() { - using namespace std; - use_facet<num_put<char> >(cout.getloc()).put(cout, cout, '0', 3.14159265); - } - ''' - self.do_run(src, '3.14159') + test_path = path_from_root('tests', 'core', 'test_isdigit_l') + src, output = (test_path + s for s in ('.in', '.out')) + + self.do_run_from_file(src, output) def test_iswdigit(self): if self.emcc_args is None: return self.skip('no libcxx inclusion without emcc') |