test/iso639_test.rb in iso639-1.0.5 vs test/iso639_test.rb in iso639-1.1.0
- old
+ new
@@ -34,13 +34,16 @@
it "should return valid languages by alpha-3 terminology code" do
assert_equal "fre", Iso639::LanguagesByAlpha3Terminology["fra"].alpha3
assert_equal "German", Iso639::LanguagesByAlpha3Terminology["DEU"].name
end
+ it "should return valid languages by alpha-3 terminology code when it matches the bibliographic" do
+ assert_equal "English", Iso639::LanguagesByAlpha3Terminology["eng"].name
+ end
+
it "should return nil for unknown codes" do
assert_nil Iso639::LanguagesByAlpha3Terminology["xxx"]
assert_nil Iso639::LanguagesByAlpha3Terminology["en"]
- assert_nil Iso639::LanguagesByAlpha3Terminology["eng"]
assert_nil Iso639::LanguagesByAlpha3Terminology["English"]
end
end
describe Iso639::LanguagesByEnglishName do