Sha256: 82c28f07aea311fc0513998adc307c03b1d89afa5cb12fbb0520d60dc9b0496e
Contents?: true
Size: 510 Bytes
Versions: 1
Compression:
Stored size: 510 Bytes
Contents
# frozen_string_literal: true require_relative 'helper' class TestFakerGenderJP < Test::Unit::TestCase include DeterministicHelper GENDER_REGEX = /\A[女男]\z/.freeze assert_methods_are_deterministic(FFakerTW::GenderJP, :random) def setup @tester = FFakerTW::GenderJP 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_jp.rb |