Sha256: aebd8545d3a5dcfe21e80a063a8581bd464ba80390b84aeb3c3e73140eada041
Contents?: true
Size: 572 Bytes
Versions: 1
Compression:
Stored size: 572 Bytes
Contents
# frozen_string_literal: true require_relative 'helper' class TestFakerGenderKR < Test::Unit::TestCase include DeterministicHelper assert_methods_are_deterministic(FFakerTW::GenderKR, :random) def setup @tester = FFakerTW::GenderKR end def test_random gender_regex = /\A[남녀]\z/ assert_match(gender_regex, @tester.random) end def test_sample gender_regex = /\A[남녀]\z/ assert_match(gender_regex, @tester.sample) end def test_maybe gender_regex = /\A[남녀]\z/ 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_kr.rb |