1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133
|
# frozen_string_literal: true
require_relative 'test_helper'
class TestKoLocale < Test::Unit::TestCase
def setup
Faker::Config.locale = 'ko'
end
def teardown
Faker::Config.locale = nil
end
def test_ko_address_methods
assert_kind_of String, Faker::Address.postcode
assert_equal(5, Faker::Address.postcode.length)
assert_kind_of String, Faker::Address.state
assert_kind_of String, Faker::Address.state_abbr
assert_kind_of String, Faker::Address.city_suffix
assert_kind_of String, Faker::Address.city_name
assert_kind_of String, Faker::Address.city
assert_kind_of String, Faker::Address.street_root
assert_kind_of String, Faker::Address.street_suffix
assert_kind_of String, Faker::Address.street_name
assert_kind_of String, Faker::Address.default_country
assert_equal('대한민국', Faker::Address.default_country)
end
def test_ko_adjective_methods
assert_kind_of String, Faker::Adjective.positive
assert_kind_of String, Faker::Adjective.negative
end
def test_ko_animal_methods
assert_kind_of String, Faker::Creature::Animal.name
end
def test_ko_color_methods
assert_kind_of String, Faker::Color.color_name
end
def test_ko_commerce_methods
assert_kind_of String, Faker::Commerce.department
assert_kind_of String, Faker::Commerce.product_name
assert_kind_of String, Faker::Commerce.promotion_code
assert_kind_of String, Faker::Commerce.material
end
def test_ko_company_methods
assert_kind_of String, Faker::Company.suffix
assert_kind_of String, Faker::Company.prefix
assert_kind_of String, Faker::Company.name
end
def test_ko_dessert_methods
assert_kind_of String, Faker::Dessert.variety
assert_kind_of String, Faker::Dessert.topping
assert_kind_of String, Faker::Dessert.flavor
end
def test_ko_emotion_methods
assert_kind_of String, Faker::Emotion.adjective
assert_kind_of String, Faker::Emotion.noun
end
def test_ko_food_methods
assert_kind_of String, Faker::Food.allergens
assert_kind_of String, Faker::Food.dish
assert_kind_of String, Faker::Food.ingredients
assert_kind_of String, Faker::Food.fruits
assert_kind_of String, Faker::Food.vegetables
end
def test_ko_games_pokemon_methods
assert_kind_of String, Faker::Games::Pokemon.name
assert_kind_of String, Faker::Games::Pokemon.location
assert_kind_of String, Faker::Games::Pokemon.move
end
def test_ko_gender_methods
assert_kind_of String, Faker::Gender.binary_type
assert_not_english(Faker::Gender.binary_type)
end
def test_ko_hobby_methods
assert_kind_of String, Faker::Hobby.activity
end
def test_ko_house_methods
assert_kind_of String, Faker::House.furniture
assert_kind_of String, Faker::House.room
end
def test_ko_internet_methods
assert_kind_of String, Faker::Internet.email
assert_kind_of String, Faker::Internet.domain_suffix
end
def test_ko_kpop_methods
assert_kind_of String, Faker::Kpop.boy_bands
assert_kind_of String, Faker::Kpop.girl_groups
assert_kind_of String, Faker::Kpop.solo
end
def test_ko_lorem_methods
assert_kind_of Array, Faker::Lorem.words
end
def test_ko_movie_methods
assert_kind_of String, Faker::Movie.title
end
def test_ko_name_methods
assert_kind_of String, Faker::Name.last_name
assert_kind_of String, Faker::Name.first_name
assert_kind_of String, Faker::Name.name
assert_kind_of String, Faker::Name.name_with_middle
end
def test_ko_phone_number_methods
assert_kind_of String, Faker::PhoneNumber.phone_number
end
def test_ko_space_methods
assert_kind_of String, Faker::Space.planet
assert_kind_of String, Faker::Space.galaxy
end
def test_ko_studio_ghibli_methods
assert_kind_of String, Faker::JapaneseMedia::StudioGhibli.character
assert_kind_of String, Faker::JapaneseMedia::StudioGhibli.movie
end
end
|