From c7a79284bb13671d8829c68f28c6839fa0b76054 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sat, 6 Sep 2014 18:38:55 +0100 Subject: [PATCH] tests: Enable misc tests on pyboard; output 4 sig figs in rge_sm. --- tests/misc/rge_sm.py | 2 +- tests/run-tests | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/misc/rge_sm.py b/tests/misc/rge_sm.py index 1860f7a318..5bbf9d48b5 100644 --- a/tests/misc/rge_sm.py +++ b/tests/misc/rge_sm.py @@ -106,7 +106,7 @@ def singleTraj(system, trajStart, h=0.02, tend=1.0): for i in range(len(rk.Trajectory)): tr = rk.Trajectory[i] - print(' '.join(["{:.5f}".format(t) for t in tr])) + print(' '.join(["{:.4f}".format(t) for t in tr])) #phaseDiagram(sysSM, (lambda i, j: [0.354, 0.654, 1.278, 0.8 + 0.2 * i, 0.1 + 0.1 * j]), (lambda a: (a[4], a[5])), h=0.1, tend=math.log(10**17)) diff --git a/tests/run-tests b/tests/run-tests index 15eedc43c4..21a0039e43 100755 --- a/tests/run-tests +++ b/tests/run-tests @@ -152,7 +152,7 @@ def main(): test_dirs = ('basics', 'micropython', 'float', 'import', 'io', 'misc', 'unicode', 'unix') else: # run pyboard tests - test_dirs = ('basics', 'micropython', 'float', 'pyb', 'pybnative', 'inlineasm') + test_dirs = ('basics', 'micropython', 'float', 'misc', 'pyb', 'pybnative', 'inlineasm') else: # run tests from these directories test_dirs = args.test_dirs