Skip to content

Commit

Permalink
Update cparser test
Browse files Browse the repository at this point in the history
  • Loading branch information
rmosolgo committed Apr 22, 2024
1 parent a8f6ad1 commit 2afa40b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/graphql/language/clexer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ def assert_bad_unicode(string, _message = nil)

it "makes frozen strings when using SchemaParser" do
str = "type Query { f1: Int }"
schema_ast = GraphQL::CParser::SchemaParser.new(str, nil, GraphQL::Tracing::NullTrace).result
default_ast = GraphQL::CParser::Parser.new(str, nil, GraphQL::Tracing::NullTrace).result
schema_ast = GraphQL::CParser::SchemaParser.new(str, nil, GraphQL::Tracing::NullTrace, nil).result
default_ast = GraphQL::CParser::Parser.new(str, nil, GraphQL::Tracing::NullTrace, nil).result

# Equivalent ASTs:
assert_equal schema_ast, default_ast
Expand Down

0 comments on commit 2afa40b

Please sign in to comment.