Sha256: 619bd8a9031a3a5ce3fe2d22f1c6f45e1bfdbfc561ce5d6f059d35cbd262dd46
Contents?: true
Size: 382 Bytes
Versions: 18
Compression:
Stored size: 382 Bytes
Contents
require 'test_helper' class Superstore::Types::FloatTypeTest < Superstore::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 0.0, coder.decode('xyz') assert_equal 3.14, coder.decode('3.14') assert_equal 5, coder.decode('5') end end
Version data entries
18 entries across 18 versions & 1 rubygems