Skip to content

Commit d01f321

Browse files
committed
Update run-examples tests
1 parent 73f5ae2 commit d01f321

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_examples_run.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
pathlib.Path("examples") / "talk" / "7-chatbot-roles.pdl",
4444
pathlib.Path("examples") / "teacher" / "teacher.pdl",
4545
pathlib.Path("examples") / "tutorial" / "include.pdl",
46+
pathlib.Path("examples") / "hello" / "hello-role-array.pdl",
4647
]
4748
}
4849

@@ -167,7 +168,7 @@ def test_valid_programs(capsys, monkeypatch) -> None:
167168
result_dir_name / result_file_name, "r", encoding="utf-8"
168169
) as result_file:
169170
expected_result = str(result_file.read())
170-
if str(result) != expected_result:
171+
if str(result).strip() != expected_result.strip():
171172
wrong_results[str(pdl_file_name)] = {
172173
"actual": str(result),
173174
"expected": str(expected_result),

0 commit comments

Comments
 (0)