diff options
author | hut <hut@lavabit.com> | 2010-06-25 14:57:12 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-06-25 14:57:12 +0200 |
commit | 40763055c6c1995271acffe6ba5928893940f88b (patch) | |
tree | aa9bf17ca4e1f3cf07005cef68120a74668e109a /test/tc_human_readable.py | |
parent | 7bc8b3fc32b44a8db8bfb321423a1bb7718350ab (diff) | |
download | ranger-40763055c6c1995271acffe6ba5928893940f88b.tar.gz |
tc_human_readable: additional testcase (which fails)
Diffstat (limited to 'test/tc_human_readable.py')
-rw-r--r-- | test/tc_human_readable.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/tc_human_readable.py b/test/tc_human_readable.py index 50fc80a1..b931ba21 100644 --- a/test/tc_human_readable.py +++ b/test/tc_human_readable.py @@ -37,5 +37,9 @@ class HumanReadableTest(unittest.TestCase): self.assertEqual("1.5 K", hr(2 ** 10 + 2 ** 9)) self.assertEqual("1.5 K", hr(2 ** 10 + 2 ** 9 - 1)) + def test_no_exponent(self): + for i in range(2 ** 10, 2 ** 20, 512): + self.assertTrue('e' not in hr(i), "%d => %s" % (i, hr(i))) + if __name__ == '__main__': unittest.main() |