Skip to content

Commit

Permalink
Fixed the question tests so that they have the new values
Browse files Browse the repository at this point in the history
  • Loading branch information
UO289845 committed Apr 1, 2024
1 parent 632765d commit e7643fb
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ void testGetJSON() {
try {
JSONObject expectedJson = new JSONObject()
.put("question", "What is the capital of France?")
.put("answers", new JSONArray().put("A").put("B").put("C"));
.put("answers", new JSONArray().put("A").put("B").put("C"))
.put("language", "en")
.put("type", "CAPITAL");
assertEquals(expectedJson.toString(), question.getJSON().toString());
} catch (JSONException e) {
fail("JSONException occurred: " + e.getMessage());
Expand Down

0 comments on commit e7643fb

Please sign in to comment.