Sha256: 49ef3838024ff47054849b8b8f973012ff9ab9342803f09b6924a12fee69b2cb
Contents?: true
Size: 905 Bytes
Versions: 1
Compression:
Stored size: 905 Bytes
Contents
require_relative './test_helper' class TestString < Minitest::Test def test_constants assert_equal 26, String::ALPHABET.length assert_includes String::ALPHABET, 'a'.namna_sub assert_includes String::ALPHABET, 'b'.namna_sub assert_equal 5, String::VOWELS.length assert_includes String::VOWELS, 'a'.namna_sub refute_includes String::VOWELS, 'b'.namna_sub assert_equal 21, String::CONSONANTS.length assert_includes String::CONSONANTS, 'b'.namna_sub refute_includes String::CONSONANTS, 'a'.namna_sub end def test_namna_sub assert_equal 'a', 'a'.namna_sub assert_equal 'b', 'b'.namna_sub assert_includes String::ALPHABET, '?'.namna_sub assert_includes String::VOWELS, '*'.namna_sub refute_includes String::CONSONANTS, '*'.namna_sub assert_includes String::CONSONANTS, '#'.namna_sub refute_includes String::VOWELS, '#'.namna_sub end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
namna-0.0.3 | test/string_test.rb |