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