Sha256: d677654fa7b095829b3c008f41f9664c6469941172b8d5be2dce0b9d78d1aa8e

Contents?: true

Size: 489 Bytes

Versions: 5

Compression:

Stored size: 489 Bytes

Contents

require 'test_helper'

class CassandraObject::Types::BaseTypeTest < CassandraObject::Types::TestCase
  test 'ignore_nil' do
    assert_equal true, coder.ignore_nil?
  end

  test 'encode' do
    assert_equal '1', coder.encode(1)
    assert_equal '', coder.encode(nil)
    assert_equal '1', coder.encode('1')
  end

  test 'decode' do
    assert_equal 'abc', coder.decode('abc')
  end

  test 'wrap' do
    object = Object.new
    assert_equal object, coder.wrap(nil, nil, object)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gotime-cassandra_object-2.6.4 test/types/base_type_test.rb
gotime-cassandra_object-2.6.3 test/types/base_type_test.rb
gotime-cassandra_object-2.6.2 test/types/base_type_test.rb
gotime-cassandra_object-2.6.1 test/types/base_type_test.rb
gotime-cassandra_object-2.6.0 test/types/base_type_test.rb