Test Your Knowledge!

Take this quiz to test what you've learned in this chapter.

Quiz on testing macros.

1

Which category does the following test case belong to?

test "t/3 returns {:error, :no_translation} when translation is missing" do assert I18n.t("en", "flash.not_exists") == {:error, :no_translation}
end
A)

Unit test

B)

Integration test

C)

Component test

D)

None of the above

Question 1 of 60 attempted

Get hands-on with 1200+ tech skills courses.