Add fixes for parsing of inplace vectors with newlines

from jespada
This commit is contained in:
Jason Turner
2014-03-01 13:49:03 -07:00
parent cb42bffbf9
commit a38d89cb41
3 changed files with 28 additions and 3 deletions

View File

@@ -3,6 +3,7 @@ assert_equal(3, x.size())
// Make sure vector elements are copied into place for consistency with
// map inplace construction
var i = 1;
@@ -12,3 +13,9 @@ assert_equal(1, y[0]);
i = 3;
assert_equal(3, i);
assert_equal(1, y[0]);
// make sure initialization with a break in the middle works as expected
var a = [0.0,0.0,
1.0,1.0]