From ee12821702f9252127faae693f1f22eb8f72b6da Mon Sep 17 00:00:00 2001 From: Zoffix Znet Date: Wed, 19 Oct 2016 17:13:41 -0400 Subject: [PATCH] =?UTF-8?q?Add=20explicit=20test=20numy=20acotan=20-?= =?UTF-8?q?=E2=88=9E=20gives=20-0e0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- S02-types/num.t | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/S02-types/num.t b/S02-types/num.t index 845941f497..781e3bb24c 100644 --- a/S02-types/num.t +++ b/S02-types/num.t @@ -622,11 +622,13 @@ ok Num === Num, 'Num === Num should be truthy, and not die'; } subtest 'acotan(num)' => { - plan 28; + plan 29; cmp-ok acotan(my num $ ), '===', NaN, 'uninitialized'; cmp-ok acotan(my num $ = NaN), '===', NaN, 'NaN'; + is acotan(my num $ = -∞).Str, '-0', '-∞ is -0'; + is-approx acotan(my num $ = ∞), my num $ = 0e0, '∞'; is-approx acotan(my num $ = -∞), my num $ = -0e0, '-∞'; is-approx acotan(my num $ = 0e0), my num $ = π/2, '0e0';