Sha256: 489db0ac0f1202a5a717f426ffb6cd072e68830bbe7eb4404c0d5970c85cab82
Contents?: true
Size: 535 Bytes
Versions: 1
Compression:
Stored size: 535 Bytes
Contents
# frozen_string_literal: true require_relative 'helper' class TestCompanyJA < Test::Unit::TestCase include DeterministicHelper assert_methods_are_deterministic( FFakerTW::CompanyJA, :name, :position ) def setup @tester = FFakerTW::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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ffakerTW-0.1.0 | test/test_company_ja.rb |