summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-09-06 18:38:55 +0100
committerDamien George <damien.p.george@gmail.com>2014-09-06 18:38:55 +0100
commitc7a79284bb13671d8829c68f28c6839fa0b76054 (patch)
tree5675905216fd6a45a648884eff3e7d54e863daab
parente6ce10a3e74d477b301ffd90c2e2e07b55ad13d4 (diff)
downloadmicropython-c7a79284bb13671d8829c68f28c6839fa0b76054.tar.gz
micropython-c7a79284bb13671d8829c68f28c6839fa0b76054.zip
tests: Enable misc tests on pyboard; output 4 sig figs in rge_sm.
-rw-r--r--tests/misc/rge_sm.py2
-rwxr-xr-xtests/run-tests2
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