exercise <- mock_this_exercise(.user_code = "2", .solution_code = "1 + 1")
with_exercise(exercise, pass_if_equal())
with_exercise(exercise, fail_if_code_feedback())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.