Skip to content

Commit 10cf8a2

Browse files
committed
challenge_prompt now takes an expression
Switch from strings to expressions for readability and to improve support for generating tests.
1 parent a612851 commit 10cf8a2

File tree

2 files changed

+137
-139
lines changed

2 files changed

+137
-139
lines changed

test/TestHelpers.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function with_fake_pty(f)
5353
end
5454
end
5555

56-
function challenge_prompt(code::AbstractString, challenges; timeout::Integer=10, debug::Bool=true)
56+
function challenge_prompt(code::Expr, challenges; timeout::Integer=10, debug::Bool=true)
5757
output_file = tempname()
5858
wrapped_code = """
5959
result = let

0 commit comments

Comments
 (0)