Sha256: fda8a74431b8cd884af74dc246e34390ea9652b84cd41534973040675e8fc0a5
Contents?: true
Size: 419 Bytes
Versions: 4
Compression:
Stored size: 419 Bytes
Contents
require 'test_helper' class CassandraObject::Types::FloatTypeTest < CassandraObject::Types::TestCase test 'encode' do assert_equal '5.01', coder.encode(5.01) assert_raise ArgumentError do coder.encode('x') end end test 'decode' do assert_equal 3.14, coder.decode('3.14') assert_equal 5, coder.decode('5') assert_raise ArgumentError do coder.decode('xyz') end end end
Version data entries
4 entries across 4 versions & 1 rubygems