Skip to content

Commit

Permalink
Format file
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobmerrild committed Dec 16, 2024
1 parent b2b2e37 commit 257adb0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions modules/core/src/test/scala/sangria/schema/CoercionSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,12 @@ class CoercionSpec extends AnyWordSpec with Matchers {
.coerceInput(BigIntValue(BigInt("123234438749837964783648763284768372648723684763287")))
.isLeft should be(true)


LongType.coerceInput(FloatValue(12.34)).isLeft should be(true)
LongType.coerceInput(BigDecimalValue(BigDecimal(12.34))).isLeft should be(true)
LongType.coerceInput(BooleanValue(true)).isLeft should be(true)
LongType.coerceInput(StringValue("123234438749837964783648763284768372648723684763287")).isLeft should be(true)
LongType
.coerceInput(StringValue("123234438749837964783648763284768372648723684763287"))
.isLeft should be(true)
}

"BigInt" in {
Expand Down Expand Up @@ -227,7 +228,9 @@ class CoercionSpec extends AnyWordSpec with Matchers {
LongType.coerceUserInput(true).isLeft should be(true)
LongType.coerceUserInput("123") should be(Right(123L))
LongType.coerceUserInput("").isLeft should be(true)
LongType.coerceUserInput("1232344387498237498732974982334324234325435").isLeft should be(true)
LongType
.coerceUserInput("1232344387498237498732974982334324234325435")
.isLeft should be(true)
LongType.coerceUserInput("123.0").isLeft should be(true)
LongType.coerceUserInput(new Date).isLeft should be(true)
}
Expand Down

0 comments on commit 257adb0

Please sign in to comment.