Skip to content

Commit

Permalink
Changed the test of the generator so they now take into account the n…
Browse files Browse the repository at this point in the history
…ew values
  • Loading branch information
UO289845 committed Apr 1, 2024
1 parent e7643fb commit 3e278c1
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ void testGenerateQuestionsEnglish() {
} catch (JSONException e) {
fail("Exception occurred while parsing JSON: " + e.getMessage());
}

assertTrue(json.has("language"));
assertEquals(json.get("language"), "en");

assertTrue(json.has("type"));
assertEquals(json.get("type"), t.toString());
}
}

Expand Down Expand Up @@ -133,6 +139,12 @@ void testGenerateQuestionsSpanish() {
} catch (JSONException e) {
fail("Exception occurred while parsing JSON: " + e.getMessage());
}

assertTrue(json.has("language"));
assertEquals(json.get("language"), "es");

assertTrue(json.has("type"));
assertEquals(json.get("type"), t.toString());
}
}

Expand Down

0 comments on commit 3e278c1

Please sign in to comment.