This commit is contained in:
ekicyou 2020-07-29 10:41:44 +09:00
parent a836eb7f8b
commit 7d333fdc4e

View File

@ -67,5 +67,13 @@ fn test_tokens_unicode_xid_ident() -> Result<(), Box<EvalAltResult>> {
#[cfg(not(feature = "unicode-xid-ident"))] #[cfg(not(feature = "unicode-xid-ident"))]
assert!(result.is_err()); assert!(result.is_err());
let result = engine.eval::<INT>(
r"
fn _1() { 1 }
_1()
",
);
assert!(result.is_err());
Ok(()) Ok(())
} }