From cd1d12565db3a645088f5a6f6517208c18c5b086 Mon Sep 17 00:00:00 2001 From: Kodi Arfer Date: Tue, 11 Oct 2016 15:48:40 -0700 Subject: [PATCH] Assertion-testing style edit --- tests/native_tests/core.hy | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/native_tests/core.hy b/tests/native_tests/core.hy index ead3960..ee74b6f 100644 --- a/tests/native_tests/core.hy +++ b/tests/native_tests/core.hy @@ -35,8 +35,9 @@ (defn assert-requires-num [f] (for [x ["foo" [] None]] - (assert-true (try (do (f x) False) - (except [e [TypeError]] True))))) + (try (f x) + (except [TypeError] True) + (else (assert False))))) (defn test-coll? [] "NATIVE: testing coll?"