require_relative './test_helper' class TestGenerator < Minitest::Test def setup @generator = Generator.new('a?*#z') end def test_initialize assert_equal 5, @generator.format.length end def test_generate assert_equal 5, @generator.generate.length assert_equal 'a', @generator.generate[0] assert_includes String::ALPHABET, @generator.generate[1] assert_includes String::VOWELS, @generator.generate[2] assert_includes String::CONSONANTS, @generator.generate[3] assert_equal 'z', @generator.generate[4] end end