Sha256: a4438a8bb4195bc34627b239c4089df6ae1f2b7db6ef022963af7db31a97431e
Contents?: true
Size: 414 Bytes
Versions: 89
Compression:
Stored size: 414 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 3, coder.decode('3') assert_equal -3, coder.decode('-3') end end
Version data entries
89 entries across 89 versions & 1 rubygems