From 420ba68b94a23fb4b02a7aa8bd6e3d433e22ce54 Mon Sep 17 00:00:00 2001 From: Jason Turner Date: Fri, 9 Jan 2015 20:20:38 -0700 Subject: [PATCH] Make sure floating point returns Infinity --- unittests/divide_by_zero_protection.chai | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unittests/divide_by_zero_protection.chai b/unittests/divide_by_zero_protection.chai index ba40a43..db648fc 100644 --- a/unittests/divide_by_zero_protection.chai +++ b/unittests/divide_by_zero_protection.chai @@ -5,3 +5,5 @@ try { assert_equal("Arithmetic error: divide by zero", e.what()) } +assert_equal(3/0.0, Infinity) +