summaryrefslogtreecommitdiff
path: root/tests/test_core.py
diff options
context:
space:
mode:
authorVasilis Kalintiris <ehostunreach@gmail.com>2013-12-07 11:41:39 +0200
committerVasilis Kalintiris <ehostunreach@gmail.com>2013-12-07 19:35:54 +0200
commit0c4345702d88832958926d9d662e5c150ebeaf27 (patch)
tree589347dc2b6de5a410ccb026307d6a675ff0073b /tests/test_core.py
parent6266030d1119c191f295ccc2e7ac7e1a78349b48 (diff)
Use do_run_from_file() for test_isdigit_l
Diffstat (limited to 'tests/test_core.py')
-rw-r--r--tests/test_core.py12
1 files changed, 4 insertions, 8 deletions
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')