Sha256: 4c161224e3b5bdfddc296f6de166d1f18632a0960c5abdd33476615d9ecfa1b9
Contents?: true
Size: 510 Bytes
Versions: 1
Compression:
Stored size: 510 Bytes
Contents
# frozen_string_literal: true require_relative 'helper' class TestFakerGenderJA < Test::Unit::TestCase include DeterministicHelper GENDER_REGEX = /\A[女男]\z/.freeze assert_methods_are_deterministic(FFakerTW::GenderJP, :random) def setup @tester = FFakerTW::GenderJA end def test_random assert_match(GENDER_REGEX, @tester.random) end def test_sample assert_match(GENDER_REGEX, @tester.sample) end def test_maybe assert_match(GENDER_REGEX, @tester.maybe) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ffakerTW-0.1.0 | test/test_gender_ja.rb |