Sha256: dabcfda3e4000df73cb8522b05367278670412a18d3dd42a222f43962fac367d

Contents?: true

Size: 251 Bytes

Versions: 2

Compression:

Stored size: 251 Bytes

Contents

require 'test_helper'

class Superstore::Types::FloatTypeTest < Superstore::Types::TestCase
  test 'cast_value' do
    assert_nil type.cast_value('xyz')
    assert_equal 1.1, type.cast_value('1.1')
    assert_equal 42.0, type.cast_value(42)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
superstore-3.0.0 test/unit/types/float_type_test.rb
superstore-2.5.0 test/unit/types/float_type_test.rb