update tests

This commit is contained in:
Jonathan Wren 2023-05-06 16:19:21 -07:00
parent aa3991abc4
commit 7b5d3fdaf9
No known key found for this signature in database
3 changed files with 18 additions and 9 deletions

View file

@ -4,9 +4,12 @@
from jrnl.main import run
def test_whatever():
expected_output = """
a: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
b: {c: 1, d: 2}
""".strip()
assert run() == expected_output
def test_passes():
num = 80
assert run(num) == "a: " + ("a" * num) + "\nb: {c: 1, d: 2}\n"
def test_fails():
num = 81
assert run(num) == "a: " + ("a" * num) + "\nb: {c: 1, d: 2}\n"