Skip to content

Instantly share code, notes, and snippets.

@oakmac
Created June 10, 2023 23:17
Show Gist options
  • Save oakmac/957e65b07d3f3820b9c8380be8c36626 to your computer and use it in GitHub Desktop.
Save oakmac/957e65b07d3f3820b9c8380be8c36626 to your computer and use it in GitHub Desktop.
humanize test failures
➜ humanize git:(hls/31-move-to-java-time) ✗ clj -M:cljs-test
Testing clj-commons.cljc-test
Testing clj-commons.humanize-test
FAIL in (filesize-test) (:)
expected: (= "3.005MB" (f 3005000 nil "%.3f"))
actual: (not (= "3.005MB" "3.0MB"))
FAIL in (filesize-test) (:)
expected: (is (= "3.005MB" (f 3005000 nil "%.3f")))
actual: false
FAIL in (filesize-test) (:)
expected: (= "2.9KiB" (f 3000 true nil))
actual: (not (= "2.9KiB" "3.0KB"))
FAIL in (filesize-test) (:)
expected: (is (= "2.9KiB" (f 3000 true nil)))
actual: false
FAIL in (filesize-test) (:)
expected: (= "2.9MiB" (f 3000000 true nil))
actual: (not (= "2.9MiB" "3.0MB"))
FAIL in (filesize-test) (:)
expected: (is (= "2.9MiB" (f 3000000 true nil)))
actual: false
FAIL in (filesize-test) (:)
expected: (= "2481.5YiB" (f (* (expt 10 26) 30) true nil))
actual: (not (= "2481.5YiB" "3000.0YB"))
FAIL in (filesize-test) (:)
expected: (is (= "2481.5YiB" (f (* (expt 10 26) 30) true nil)))
actual: false
Testing clj-commons.inflect-test
Ran 10 tests containing 178 assertions.
8 failures, 0 errors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment