Skip to content

Commit

Permalink
test: forget to turn the test into a test
Browse files Browse the repository at this point in the history
  • Loading branch information
marsninja committed Feb 24, 2024
1 parent 5db23da commit 41abdc9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
File renamed without changes.
17 changes: 17 additions & 0 deletions jaclang/tests/test_language.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,3 +323,20 @@ def test_with_contexts(self) -> None:
"{'apple': [1, 2, 3], 'banana': [1, 2, 3], 'cherry': [1, 2, 3]}",
stdout_value,
)

def test_typed_filter_compr(self) -> None:
"""Parse micro jac file."""
captured_output = io.StringIO()
sys.stdout = captured_output
jac_import(
"micro.typed_filter_compr",
base_path=self.fixture_abs_path("../../../examples/"),
)
sys.stdout = sys.__stdout__
stdout_value = captured_output.getvalue()
self.assertIn(
"[MyObj(a=0), MyObj2(a=2), MyObj(a=1), "
"MyObj2(a=3), MyObj(a=2), MyObj(a=3)]\n",
stdout_value,
)
self.assertIn("[MyObj(a=0), MyObj(a=1), MyObj(a=2)]\n", stdout_value)

0 comments on commit 41abdc9

Please sign in to comment.