This commit is contained in:
Kovid Goyal 2024-03-11 09:17:56 +05:30
parent 9b481c42d8
commit 4555f8f591
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -14,3 +14,5 @@ def misc_utils():
assert_equal(fmt_sidx(1.2), '1.20')
assert_equal(list(map(human_readable, [1, 1024.0, 1025, 1024*1024*2.3])), ["1 B", "1 KB", "1 KB", "2.3 MB"])
assert_equal(False, deep_eq({"portrait":0, "landscape":0}, {"landscape":3, "portrait":0}))
assert_equal(False, deep_eq(1, 2))
assert_equal(True, deep_eq(1, 1))