1. Georg Brandl
  2. ipython-physics

Commits

Anders Lehmann  committed c594afd

Duh, the real test was commented out

  • Participants
  • Parent commits 3a999a3
  • Branches default

Comments (0)

Files changed (1)

File test_prefilter.py

View file
  • Ignore whitespace
     a = Q('1.45 m')
     s = "{}".format(a)
     assert s == '1.45 m'
-#    s = "{:.4e}".format(a)
-#    assert s == '1.4500E+0 m'
+    s = "{:.4e}".format(a)
+    assert s == '1.4500E+0 m'
     s = "{.value}".format(a)
     assert s == '1.45'
+    s = "%s" % a
+    assert s == '1.45 m'