require 'test_helper'

class Superstore::Types::ArrayTypeTest < Superstore::Types::TestCase
    test 'decode' do
      assert_equal ['1', '2'], type.decode(['1', '2'].to_json)
      assert_equal nil, type.decode(nil)
      assert_equal nil, type.decode('')
    end
  end

  test 'typecast' do
    assert_equal ['x', 'y'], type.typecast(['x', 'y'].to_set)
  end
end

require 'test_helper'

class Superstore::Types::ArrayTypeTest < Superstore::Types::TestCase
  test 'typecast' do
    assert_equal ['x', 'y'], type.typecast(['x', 'y'].to_set)
  end
end

Remove partially remaining decode test
Remove partially remaining decode test
