Sha256: 0514bbf8e8d06106bcb8f9e9b0a5723ea39746f36a66817a7eb8fee8cf209cd7
Contents?: true
Size: 735 Bytes
Versions: 20
Compression:
Stored size: 735 Bytes
Contents
require 'spec_helper' describe GraphQL::BaseType do it 'becomes non-null with !' do type = GraphQL::EnumType.new non_null_type = !type assert_equal(GraphQL::TypeKinds::NON_NULL, non_null_type.kind) assert_equal(type, non_null_type.of_type) assert_equal(GraphQL::TypeKinds::NON_NULL, (!GraphQL::STRING_TYPE).kind) end it 'can be compared' do assert_equal(!GraphQL::INT_TYPE, !GraphQL::INT_TYPE) refute_equal(!GraphQL::FLOAT_TYPE, GraphQL::FLOAT_TYPE) assert_equal( GraphQL::ListType.new(of_type: MilkType), GraphQL::ListType.new(of_type: MilkType) ) refute_equal( GraphQL::ListType.new(of_type: MilkType), GraphQL::ListType.new(of_type: !MilkType) ) end end
Version data entries
20 entries across 20 versions & 1 rubygems