# File test/src/simple_parser_test.rb, line 406 def verifyTypeMismatch(mtd, n, expected, actual) begin yield assert_fail('should have failed with type mismatch') rescue ArgumentError => e assert_equal("#{actual} assigned to #{expected} for the #{n} argument of #{mtd}.", e.message) end end