Sha256: 74c21049ca064ed03284d6cb5b318358bdc2dc5455a3f7d6c09de5bdbfdc7dac
Contents?: true
Size: 1.05 KB
Versions: 1
Compression:
Stored size: 1.05 KB
Contents
# frozen_string_literal: true require_relative 'helper' class TestNameVN < Test::Unit::TestCase include DeterministicHelper assert_methods_are_deterministic( FFakerTW::NameVN, :last_name, :first_name, :middle_name, :name, :last_first ) def setup @tester = FFakerTW::NameVN end def test_last_name assert_include @tester::LAST_NAMES, @tester.last_name end def test_first_name assert_include @tester::FIRST_NAMES, @tester.first_name end def test_middle_name assert_include @tester::MIDDLE_NAMES, @tester.middle_name end def test_name (middle_name, first_name, last_name) = @tester.name.split(' ') assert_include @tester::FIRST_NAMES, first_name assert_include @tester::MIDDLE_NAMES, middle_name assert_include @tester::LAST_NAMES, last_name end def test_last_first (last_name, middle_name, first_name) = @tester.last_first.split(' ') assert_include @tester::FIRST_NAMES, first_name assert_include @tester::MIDDLE_NAMES, middle_name assert_include @tester::LAST_NAMES, last_name end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ffakerTW-0.1.0 | test/test_name_vn.rb |