search for: binarytest

Displaying 1 result from an estimated 1 matches for "binarytest".

Did you mean: binary_test
2006 Mar 03
0
binary_to_string/string_to_binary confusion
...def self.string_to_binary(value) value = self.hex_decode(value) value end def self.binary_to_string(value) value = self.hex_encode(value) value end Then the first two tests still pass, but the third pass fails: 1) Failure: test_load_save(BinaryTest) [binary_test.rb:36]: Reloaded data differs from original. <false> is not true. It is failing because it is storing the raw X''<hex digits>'' data instead of converting it back into binary. Lookint at the code, it appears that database results pass through the type_cas...