add test
This commit is contained in:
parent
a836eb7f8b
commit
7d333fdc4e
@ -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(())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user