# frozen_string_literal: true

require 'yaml'

test_array = ['Give Quiche a Chance',
              'Mutants Out!',
              'Chameleonic Life-Forms, No Thanks']

test_string = test_array.to_yaml

filename = 'RimmerTShirts.txt'

File.open filename, 'w' do |f|
  f.write test_string
end

read_string = File.read filename

read_array = YAML.safe_load read_string

puts(read_string == test_string)
puts(read_array  == test_array)
