diff --git a/tests/integration.rs b/tests/integration.rs index 1fd07d3..94e26a1 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -2299,6 +2299,8 @@ fn test_hex() { assert_eq!(eval("-0xFF"), Ok(Value::Int(-255))); assert_eq!( eval("0x"), + // The "VariableIdentifierNotFound" error is what evalexpr currently returns, + // but ideally it would return more specific errors for "illegal" literals. Err(EvalexprError::VariableIdentifierNotFound("0x".into())) ); }