require 'minitest/autorun' require_relative 'main' class ConvertHashSyntaxTest < Minitest::Test def test_convert_hash_syntax old_syntax = <<~TEXT { :name => 'Alice', :age => 20, :gender => :famle } TEXT expected = <<~TEXT { name: 'Alice', age: 20, gender: :famle } TEXT assert_equal expected, convert_hash_syntax(old_syntax) end end