1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# ruby 1.9.0 (2007-12-25 revision 14709) [i386-mswin32]
# This is okay...
# h = {
# "x"=>[[4.0]]
# }
# marshall_test_case.rb:8:in `load': marshal data too short (ArgumentError)
# from marshall_test_case.rb:8:in `<main>'
h = { "x"=>[[4.0]]
}
File.open("sample.cache", "w"){|f| Marshal.dump(h, f)}
puts Marshal.load(File.read("sample.cache"))
|

