Skip to content

Commit 0171893

Browse files
Copilotxperiandri
andcommitted
Use box for Guid argument in CoercionTests per review feedback
Agent-Logs-Url: https://github.com/fsprojects/FSharp.Data.GraphQL/sessions/d2fe5523-e81b-4d08-813e-b7f106345347 Co-authored-by: xperiandri <2365592+xperiandri@users.noreply.github.com>
1 parent b013e1b commit 0171893

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/FSharp.Data.GraphQL.Tests/Variables and Inputs/CoercionTests.fs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ let private testOutputCoercion graphQLType (expected: 'a) (input: obj) =
121121

122122
[<Fact>]
123123
let ``ID coerces output`` () =
124-
testOutputCoercion IDType "abc" ("abc" : obj)
125-
testOutputCoercion IDType "123" (123 : obj)
126-
testOutputCoercion IDType "123" (123L : obj)
124+
testOutputCoercion IDType "abc" (box "abc")
125+
testOutputCoercion IDType "123" (box 123)
126+
testOutputCoercion IDType "123" (box 123L)
127127
let guid = Guid.Parse "d6c684d9-aaaa-4e88-bbb2-0bb584f1661d"
128-
testOutputCoercion IDType (string guid) (guid : obj)
128+
testOutputCoercion IDType (string guid) (box guid)

0 commit comments

Comments
 (0)