Skip to content

Commit

Permalink
Github
Browse files Browse the repository at this point in the history
  • Loading branch information
MZshnik committed Jul 8, 2024
1 parent a0fcfc0 commit 7730207
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/testhandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ async def test_chunks_and_ifs(self):
funcs = FunctionsHandler()
check_ifs = funcs.check_ifs
get_chunks = funcs.get_chunks
result = await get_chunks("$endif $if[1!=1] $console[Okay] $console[Good] $else")
self.assertEqual(result, ["$endif", " ", "$if[1!=1]", " ", "$console[Okay]", " ", "$console[Good]", " ", "$elif[True]"])
await check_ifs(result)
# result = await get_chunks("$endif $if[1!=1] $console[Okay] $console[Good] $else")
# self.assertEqual(result, ["$endif", " ", "$if[1!=1]", " ", "$console[Okay]", " ", "$console[Good]", " ", "$elif[True]"])
# await check_ifs(result)
raise SyntaxError("гитхаб")

result = await get_chunks("$if[1==1] $console[Okay] $else $console[Good] $endif")
self.assertEqual(result, ["$if[1==1]", " ", "$console[Okay]", " ", "$elif[True]", " ", "$console[Good]", " ", "$endif"])
Expand Down

0 comments on commit 7730207

Please sign in to comment.