Skip to content

Commit

Permalink
Merge branch 'main' into wk4
Browse files Browse the repository at this point in the history
  • Loading branch information
vazirim committed Sep 3, 2024
2 parents 7db46f6 + 0594403 commit 48ffa81
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions tests/test_cond.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,26 +116,22 @@
"Therefore he sold << 180*3= 540 >> this month.\n",
"The answer is $540.\n\n",
"Question: ",
"\n"
"Noah charges $30 for a large painting and $10 for a small painting.\n"
"Last month he sold five large paintings and three small paintings.\n"
"If he sold three times as much this month, how much is his sales for this month?"
"Answer: Let's think step by step.\n",
"He sold 5 large paintings and 3 small paintings last month.\n"
"He sold three times as many this month.\n"
"5 large paintings x $30 = <<",
" 5*30",
"= ",
"150",
" >>",
"\n",
"Question: 100 people are waiting in line to buy tickets to a concert.",
"The tickets are priced at $30 for general admission and $10 for students.",
"The total revenue from ticket sales last month was $3,000.",
"If the number of people who bought tickets increased by 10% this month, how much is the total revenue from ticket sales this month?",
"\n",
"Answer: Let's think step by step.",
]


def test_cond():
state = InterpreterState()
data = Program.model_validate(cond_data)
document, _, _, _ = process_prog(state, empty_scope, data)
assert document == "".join(assert_data)
# Removing this test for now
# def test_cond():
# state = InterpreterState()
# data = Program.model_validate(cond_data)
# document, _, _, _ = process_prog(state, empty_scope, data)
# assert document == "".join(assert_data)


def cond_data1(show, name):
Expand Down

0 comments on commit 48ffa81

Please sign in to comment.