Add comment about inaccurate error in test.

This commit is contained in:
Sebastian Schmidt 2023-06-01 16:01:01 +03:00
parent d5b1f7bea7
commit 1033e16904

View File

@ -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()))
);
}