@@ -1902,6 +1902,7 @@ fn test_expr(expr: &str, result: &str) -> TestResult {
19021902#[ test_case( "42" , "42e0" , Some ( true ) ) ]
19031903#[ test_case( "42.0" , "42e0" , Some ( true ) ) ]
19041904#[ test_case( "42" , "43" , Some ( false ) ) ]
1905+ #[ test_case( "\" foo\" ^^xsd:integer" , "42" , None ) ]
19051906#[ test_case( "\" a\" " , "\" \" " , Some ( false ) ) ]
19061907#[ test_case( "\" a\" @en" , "\" \" @en" , Some ( false ) ) ]
19071908#[ test_case( "\" a\" @en" , "\" a\" @fr" , Some ( false ) ) ]
@@ -1949,7 +1950,7 @@ fn test_expr_eq(expr1: &str, expr2: &str, exp: Option<bool>) -> TestResult {
19491950 assert_eq ! ( eval_expr( & format!( "{expr2} = {expr2}" ) ) ?, TRUE ) ;
19501951 assert_eq ! ( eval_expr( & format!( "{expr2} != {expr2}" ) ) ?, FALSE ) ;
19511952 // control: every recognized value is equal to itself via comparison operators
1952- if !expr1. contains ( "<tag:" ) {
1953+ if !expr1. contains ( "<tag:" ) && !expr1 . contains ( " \" foo \" " ) {
19531954 assert_eq ! ( eval_expr( & format!( "{expr1} <= {expr1}" ) ) ?, TRUE ) ;
19541955 assert_eq ! ( eval_expr( & format!( "{expr1} >= {expr1}" ) ) ?, TRUE ) ;
19551956 assert_eq ! ( eval_expr( & format!( "{expr1} < {expr1}" ) ) ?, FALSE ) ;
0 commit comments