File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ describe('Array without keys', function() {
29
29
30
30
describe ( 'of numbers' , function ( ) {
31
31
// Get result from parser
32
- var ast = parser . parseEval ( 'array(1, 2, 3 )' ) ;
32
+ var ast = parser . parseEval ( 'array(1, 2.5, 0x1000 )' ) ;
33
33
34
34
it ( 'should be of type array' , function ( ) {
35
35
ast [ 1 ] [ 0 ] [ 0 ] . should . be . exactly ( "array" ) ;
@@ -41,13 +41,13 @@ describe('Array without keys', function() {
41
41
42
42
it ( 'should have correct item types and values' , function ( ) {
43
43
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' ) ;
45
45
46
46
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' ) ;
48
48
49
49
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' ) ;
51
51
} ) ;
52
52
} ) ;
53
53
You can’t perform that action at this time.
0 commit comments