From e57315251333d184243de508a70e8fb297fa1532 Mon Sep 17 00:00:00 2001 From: Erin Date: Thu, 21 Jul 2022 17:31:52 +0200 Subject: [PATCH] added number --- src/lexer.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lexer.rs b/src/lexer.rs index f1b6b1f..87ecd25 100644 --- a/src/lexer.rs +++ b/src/lexer.rs @@ -85,7 +85,7 @@ mod tests { #[test] fn gibberish() { assert_lex( - "(][)}'{\"ABLE\"corp :wisp ¨", + "(][)}'{\"ABLE\"corp :wisp 6.2831853071¨", &[ LeftParen, RightBracket, @@ -97,6 +97,7 @@ mod tests { String("ABLE"), Symbol("corp"), Keyword("wisp"), + Number(6.2831853071.into()), Error, ], )