Sha256: 7e353ba0b24469dc27a0e63072d140462cd410725c1c0e887dd45721956cd9a1
Contents?: true
Size: 531 Bytes
Versions: 5
Compression:
Stored size: 531 Bytes
Contents
# frozen_string_literal: true require_relative 'helper' class TestCompanyJA < Test::Unit::TestCase include DeterministicHelper assert_methods_are_deterministic( FFaker::CompanyJA, :name, :position ) def setup @tester = FFaker::CompanyJA end def test_name assert_match(japanese_regex(''), @tester.name) end def test_position assert_match(japanese_regex(''), @tester.position) end def japanese_regex(word) /\A(?:\p{Hiragana}|\p{Katakana}|[ー-]|[一-龠々])+#{word}\z/ end end
Version data entries
5 entries across 5 versions & 1 rubygems