# File test_format.rb, line 277
  def helper_hash_test_four (body_fmt, file_name)
    h = Hash.new
    h["month"] = "Sep"
    h['day'] = 18
    h['year'] = 2001
    File.open(file_name, File::CREAT | File::WRONLY | File::TRUNC) { |file|
      body_fmt.io = file
      10.times do 
        num = 1
        h["num"] = num
        ["Market", "Home", "Eating Roast Beef", 
          "Having None", "On the way home"].each {|location|
          h["location"] = location
          h["toe_size"] = (num * 3.5)
          body_fmt.printFormatWithHash(h)
          num += 1
          h["num"] = num
        }
      end
    }
    assert(compareOutput(file_name,
                         "./format_test.pl 4", nil))
  end