From 7d333fdc4ed8bcdc5fb237ba6b4e7b3e9f55c47d Mon Sep 17 00:00:00 2001 From: ekicyou Date: Wed, 29 Jul 2020 10:41:44 +0900 Subject: [PATCH] add test --- tests/tokens.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/tokens.rs b/tests/tokens.rs index 2523af7d..843fc719 100644 --- a/tests/tokens.rs +++ b/tests/tokens.rs @@ -67,5 +67,13 @@ fn test_tokens_unicode_xid_ident() -> Result<(), Box> { #[cfg(not(feature = "unicode-xid-ident"))] assert!(result.is_err()); + let result = engine.eval::( + r" + fn _1() { 1 } + _1() + ", + ); + assert!(result.is_err()); + Ok(()) }