Skip to content

Commit 553d27c

Browse files
test: Add test for unaries
1 parent dcfc26d commit 553d27c

File tree

2 files changed

+55
-2
lines changed

2 files changed

+55
-2
lines changed

test/.snapshots/test_astgen.txt

Lines changed: 52 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/test_astgen.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,6 @@ def test_string_basic(self): # Just test very basic string stuff, rest is in ev
4343
def test_autocat(self):
4444
self.assertAstMatchesSnapshot(
4545
'b="abc\\U0010f9aB" ' + "'end1234'\n" + "'\"'" + '"\'";')
46+
47+
def test_unaries(self):
48+
self.assertAstMatchesSnapshot('a=+(-!b==!-+c)-+--r+(-9);')

0 commit comments

Comments
 (0)