Add comment about inaccurate error in test.
This commit is contained in:
parent
d5b1f7bea7
commit
1033e16904
@ -2299,6 +2299,8 @@ fn test_hex() {
|
|||||||
assert_eq!(eval("-0xFF"), Ok(Value::Int(-255)));
|
assert_eq!(eval("-0xFF"), Ok(Value::Int(-255)));
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
eval("0x"),
|
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()))
|
Err(EvalexprError::VariableIdentifierNotFound("0x".into()))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user