Permalink
Browse files

correct spacing around operators in slice output

  • Loading branch information...
michaelficarra committed May 20, 2012
1 parent b814981 commit 972a5299d54d75aefaba941472736e22191448a6

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -787,7 +787,7 @@ exports.Slice = class Slice extends Base
"#{+compiled + 1}"
else
compiled = to.compile o, LEVEL_ACCESS
- "+#{compiled}+1 || 9e9"
+ "+#{compiled} + 1 || 9e9"
".slice(#{ fromStr }#{ toStr or '' })"
#### Obj
@@ -61,7 +61,7 @@ test "#1722: operator precedence in unbounded slice compilation", ->
arrayEq [0..n], list[..n or 0]
arrayEq [0..n], list[..if n then n else 0]
-test "#2349: slicing to numeric strings", ->
+test "#2349: inclusive slicing to numeric strings", ->
arrayEq [0, 1], [0..10][.."1"]

0 comments on commit 972a529

Please sign in to comment.