summaryrefslogtreecommitdiff
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
parent6266030d1119c191f295ccc2e7ac7e1a78349b48 (diff)
Use do_run_from_file() for test_isdigit_l
-rw-r--r--tests/core/test_isdigit_l.in7
-rw-r--r--tests/core/test_isdigit_l.out1
-rw-r--r--tests/test_core.py12
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')