From 015bb3cf75ee64967631577c2acc491f28267511 Mon Sep 17 00:00:00 2001 From: Thomas Harning Jr Date: Mon, 18 Apr 2016 23:15:35 -0400 Subject: [PATCH] tests: enhances coverage for NaN handling --- tests/lunit-numbers.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/lunit-numbers.lua b/tests/lunit-numbers.lua index 0b91650..a9f1e41 100644 --- a/tests/lunit-numbers.lua +++ b/tests/lunit-numbers.lua @@ -118,6 +118,7 @@ function test_nan_nostrict() assert_true(value ~= value) local value = decode("NaN") assert_true(value ~= value) + assert_equal("NaN", encode(decode("NaN"))) end function test_expression() -- 2.11.4.GIT