File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -75,21 +75,21 @@ mod tests {
75
75
#[ test]
76
76
fn string_from_null ( ) {
77
77
let mut parser = Statement :: new ( ) . unwrap ( ) ;
78
- let result = parser. parse_and_execute ( "[string(null)]" , & Context :: new ( ) ) . unwrap ( ) ;
78
+ let result = parser. parse_and_execute ( "[string(null() )]" , & Context :: new ( ) ) . unwrap ( ) ;
79
79
assert_eq ! ( result, "null" ) ;
80
80
}
81
81
82
82
#[ test]
83
83
fn string_from_array ( ) {
84
84
let mut parser = Statement :: new ( ) . unwrap ( ) ;
85
- let result = parser. parse_and_execute ( "[string(createArray('a', 1 ))]" , & Context :: new ( ) ) . unwrap ( ) ;
86
- assert_eq ! ( result, json!( [ "a" , 1 ] ) . to_string( ) ) ;
85
+ let result = parser. parse_and_execute ( "[string(createArray('a', 'b' ))]" , & Context :: new ( ) ) . unwrap ( ) ;
86
+ assert_eq ! ( result, json!( [ "a" , "b" ] ) . to_string( ) ) ;
87
87
}
88
88
89
89
#[ test]
90
90
fn string_from_object ( ) {
91
91
let mut parser = Statement :: new ( ) . unwrap ( ) ;
92
- let result = parser. parse_and_execute ( "[string(createObject('a', 1 ))]" , & Context :: new ( ) ) . unwrap ( ) ;
93
- assert_eq ! ( result, json!( { "a" : 1 } ) . to_string( ) ) ;
92
+ let result = parser. parse_and_execute ( "[string(createObject('a', 'hello' ))]" , & Context :: new ( ) ) . unwrap ( ) ;
93
+ assert_eq ! ( result, json!( { "a" : "hello" } ) . to_string( ) ) ;
94
94
}
95
95
}
You can’t perform that action at this time.
0 commit comments