From dc8e955c4fa9007e0d2e61afcf07b196f96d8067 Mon Sep 17 00:00:00 2001 From: Michael Ficarra Date: Sun, 27 Feb 2011 02:11:12 -0500 Subject: [PATCH] test for #1168 --- test/number_literals.coffee | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/number_literals.coffee b/test/number_literals.coffee index 511bec7e..ea5dadd9 100644 --- a/test/number_literals.coffee +++ b/test/number_literals.coffee @@ -37,3 +37,8 @@ eq Number::toString, .42['toString'] eq Number::toString, 4.2.toString eq Number::toString, .42.toString + +test '#1168: leading floating point suppresses newline', -> + eq 1, do -> + 1 + .5 + 0.5