Skip to content

Commit

Permalink
Paused math test
Browse files Browse the repository at this point in the history
  • Loading branch information
KillianLucas authored Oct 11, 2023
1 parent eb7b7b5 commit f299c9e
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions tests/test_interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,30 +54,6 @@ def test_hello_world():
{"role": "assistant", "message": hello_world_response},
]

"""
def test_math():
# we'll generate random integers between this min and max in our math tests
min_number = randint(1, 99)
max_number = randint(1001, 9999)
n1 = randint(min_number, max_number)
n2 = randint(min_number, max_number)
test_result = n1 + n2 * (n1 - n2) / (n2 + n1)
order_of_operations_message = f"""
Please perform the calculation `{n1} + {n2} * ({n1} - {n2}) / ({n2} + {n1})` then reply with just the answer, nothing else. No confirmation. No explanation. No words. Do not use commas. Do not show your work. Just return the result of the calculation. Do not introduce the results with a phrase like \"The result of the calculation is...\" or \"The answer is...\"

Round to 2 decimal places.
""".strip()
messages = interpreter.chat(order_of_operations_message)
print(messages)
assert str(round(test_result, 2)) in messages[-1]["message"]
"""


def test_delayed_exec():
interpreter.chat(
Expand Down

0 comments on commit f299c9e

Please sign in to comment.