Skip to content

Commit

Permalink
More parser tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaly Puzrin committed Jan 3, 2016
1 parent db6bba3 commit dd3014c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/path_parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ describe('Path parse', function () {
assert.equal(svgpath('M+').err, 'SvgPath: param should start with 0..9 or `.` (at pos 2)');
assert.equal(svgpath('M00').err, 'SvgPath: numbers started with `0` such as `09` are ilegal (at pos 1)');
assert.equal(svgpath('M0e').err, 'SvgPath: invalid float exponent (at pos 3)');

assert.equal(svgpath('M0').err, 'SvgPath: missed param (at pos 2)');
assert.equal(svgpath('M0,0,').err, 'SvgPath: missed param (at pos 5)');
assert.equal(svgpath('M0 .e3').err, 'SvgPath: invalid float exponent (at pos 4)');
});
});

0 comments on commit dd3014c

Please sign in to comment.