Skip to content

Commit 134379b

Browse files
committed
fix tests on numbers (fix glayzzle#23)
1 parent 16a0458 commit 134379b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/functional/arrayTests.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ describe('Array without keys', function() {
2929

3030
describe('of numbers', function () {
3131
// Get result from parser
32-
var ast = parser.parseEval('array(1, 2, 3)');
32+
var ast = parser.parseEval('array(1, 2.5, 0x1000)');
3333

3434
it('should be of type array', function () {
3535
ast[1][0][0].should.be.exactly("array");
@@ -41,13 +41,13 @@ describe('Array without keys', function() {
4141

4242
it('should have correct item types and values', function () {
4343
ast[1][0][1][0].value[0].should.be.exactly("number");
44-
ast[1][0][1][0].value[1].should.be.exactly(1);
44+
ast[1][0][1][0].value[1].should.be.exactly('1');
4545

4646
ast[1][0][1][1].value[0].should.be.exactly("number");
47-
ast[1][0][1][1].value[1].should.be.exactly(2);
47+
ast[1][0][1][1].value[1].should.be.exactly('2.5');
4848

4949
ast[1][0][1][2].value[0].should.be.exactly("number");
50-
ast[1][0][1][2].value[1].should.be.exactly(3);
50+
ast[1][0][1][2].value[1].should.be.exactly('0x1000');
5151
});
5252
});
5353

0 commit comments

Comments
 (0)