def test_scientific
f = [];
f.push("1 @.##G### @.##e###")
f.push("exp, exp")
f.push("2 @##.###g### @##.#E###")
f.push("big, big")
f.push("3 @.#G## @.#e##")
f.push("little, little")
f.push("4 @E##")
f.push("mid")
f.push("5 @.#E## @e##")
f.push("little, mid")
f.push("6 int @.#g## @.#e##")
f.push("int, int")
f.push("7 int @.G## @.E##")
f.push("int, int")
0.upto(1) do |x|
exp_format = Format.new("", f, nil)
exp_format.useHash(x == 0)
helper_test_scientific(exp_format, "format_testfile10-#{x}")
assert(compareOutput("format_testfile10-#{x}",
"./format_test.pl 10", nil))
end
end