]> www.git.momoyon.org Git - lang.git/commitdiff
[New test] 05-multiple-identifiers.momo
authorahmedsamyh <ahmedsamyh10@gmail.com>
Sat, 16 Nov 2024 17:11:19 +0000 (22:11 +0500)
committerahmedsamyh <ahmedsamyh10@gmail.com>
Sat, 16 Nov 2024 17:11:19 +0000 (22:11 +0500)
main.py
tests/05-multiple-identifiers.momo [new file with mode: 0644]
tests/05-multiple-identifiers.momo.test [new file with mode: 0644]

diff --git a/main.py b/main.py
index 38b6a201c4fea1bf61cdc8397e133953adcb40dd..9820eb2d9cd75db7d623445b2b7244e5915f821e 100644 (file)
--- a/main.py
+++ b/main.py
@@ -129,7 +129,6 @@ class Parser:
 
         # dlog(f"Char after left trim: '{self.current_char()}'")
 
-
     def next_token(self) -> Token | None:
         self.left_trim()
 
diff --git a/tests/05-multiple-identifiers.momo b/tests/05-multiple-identifiers.momo
new file mode 100644 (file)
index 0000000..63afdaf
--- /dev/null
@@ -0,0 +1,2 @@
+  foo
+bar baz
diff --git a/tests/05-multiple-identifiers.momo.test b/tests/05-multiple-identifiers.momo.test
new file mode 100644 (file)
index 0000000..d2de25f
--- /dev/null
@@ -0,0 +1,4 @@
+"Token (Ident, 'foo', ./tests/05-multiple-identifiers.momo:1:2)"
+"Token (Ident, 'bar', ./tests/05-multiple-identifiers.momo:1:6)"
+"Token (Ident, 'baz', ./tests/05-multiple-identifiers.momo:1:10)"
+'None'