Skip to content

Commit

Permalink
document future hypothesis issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Felienne committed Sep 27, 2023
1 parent ca1e88c commit 2a6621b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_level/test_level_01.py
Original file line number Diff line number Diff line change
Expand Up @@ -790,5 +790,9 @@ def test_template_combination(self, code_tuples, d):
expected_commands = [Command.ask, Command.ask, Command.echo, Command.echo, Command.forward, Command.forward,
Command.print, Command.print, Command.print, Command.turn, Command.turn]

# TODO, FH sept 2023: all_commands parses and thus is expensive
# we should get the commands list back from the parser instead (parseresult.commands)
# since we don't use many single_level_tester features
# we can transpile and check the python "manually"
all_commands = sorted(hedy.all_commands(code, self.level, 'en'))
self.assertEqual(expected_commands, all_commands)

0 comments on commit 2a6621b

Please sign in to comment.