From 1033e16904eba6c1fa7c86857b5136adc84c720f Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Thu, 1 Jun 2023 16:01:01 +0300 Subject: [PATCH] Add comment about inaccurate error in test. --- tests/integration.rs | 2 ++ 1 file changed, 2 insertions(+) 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())) ); }