Sha256: efb08d7b67f8462493268dd2ef58404d28511802dc0d12adda51ce0758ede4e7
Contents?: true
Size: 455 Bytes
Versions: 23
Compression:
Stored size: 455 Bytes
Contents
require 'test_helper' class CassandraObject::Types::IntegerTypeTest < CassandraObject::Types::TestCase test 'encode' do assert_equal '3', coder.encode(3) assert_equal '-3', coder.encode(-3) assert_raise ArgumentError do coder.encode('xx') end end test 'decode' do assert_nil coder.decode('') assert_equal 0, coder.decode('abc') assert_equal 3, coder.decode('3') assert_equal -3, coder.decode('-3') end end
Version data entries
23 entries across 23 versions & 2 rubygems