-# $Id: test_basic.rb 1 2005-03-26 01:45:38Z tilman $
-
require "eet"
require "test/unit"
require "common"
@int = 1024
@long_long = (2 << 63) - 1
@flag = true
- @float = 1234.0
- @double = 12341234.0
+ @float = 1234.12424213138
end
private
"i64" => [@long_long, :long_long],
"flag" => [@flag],
"f32" => [@float],
- "f64" => [@double, :double]}
+ "f64" => [@float, :double]}
end
end
values = {"name" => "moo\0",
"i16" => "\0\2", "i32" => "\0\4\0\0",
"i64" => "\377" * 8, "flag" => "\1",
- "f32" => "1234." + ("0" * 16) + "\0",
- "f64" => "12341234." + ("0" * 32) + "\0"}
+ "f32" => "0x1.3487f4p+10\0",
+ "f64" => "0x1.3487f39544c4p+10\0"}
values.each do |k, v|
found = stream.find { |c| c.tag == k }
assert_not_nil(found, "chunk not found - #{k}")