Skip to content

Commit

Permalink
run 'sbt fmt' (#1053)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishek818 committed Jun 28, 2024
1 parent 528816e commit 033687a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
5 changes: 4 additions & 1 deletion zio-json/shared/src/test/scala/zio/json/CodecSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ object CodecSpec extends ZIOSpecDefault {
// the maximum value of an unsigned 256-bit integer is (upto 78 digits) :
// 115,792,089,237,316,195,423,570,985,008,687,907,853,269,984,665,640,564,039,457,584,007,913,129,639,935
// this big integer consumes more than 256 bits
assert("170141183460469231731687303715884105728170141183460469231731687303715884105728".fromJson[java.math.BigInteger])(
assert(
"170141183460469231731687303715884105728170141183460469231731687303715884105728"
.fromJson[java.math.BigInteger]
)(
isLeft(equalTo("(expected a 256 bit BigInteger)"))
) && assert(exampleBDString.fromJson[BigDecimal])(isRight(equalTo(BigDecimal(exampleBDString))))
},
Expand Down
5 changes: 4 additions & 1 deletion zio-json/shared/src/test/scala/zio/json/DecoderSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ object DecoderSpec extends ZIOSpecDefault {
// the maximum value of an unsigned 256-bit integer is (upto 78 digits) :
// 115,792,089,237,316,195,423,570,985,008,687,907,853,269,984,665,640,564,039,457,584,007,913,129,639,935
// this big integer consumes more than 256 bits
assert("170141183460469231731687303715884105728170141183460469231731687303715884105728".fromJson[java.math.BigInteger])(
assert(
"170141183460469231731687303715884105728170141183460469231731687303715884105728"
.fromJson[java.math.BigInteger]
)(
isLeft(equalTo("(expected a 256 bit BigInteger)"))
)
},
Expand Down
5 changes: 3 additions & 2 deletions zio-json/shared/src/test/scala/zio/json/EncoderSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,9 @@ object EncoderSpec extends ZIOSpecDefault {
) // See the issue: https://github.com/zio/zio-json/pull/375
},
test("other numerics") {
val exampleBigIntStr = "115792089237316195423570985008687907853269984665640564039457584007913129639935"
val exampleBigDecimalStr = "115792089237316195423570985008687907853269984665640564039457584007913129639935.4433"
val exampleBigIntStr = "115792089237316195423570985008687907853269984665640564039457584007913129639935"
val exampleBigDecimalStr =
"115792089237316195423570985008687907853269984665640564039457584007913129639935.4433"
assert((1: Byte).toJson)(equalTo("1")) &&
assert((1: Short).toJson)(equalTo("1")) &&
assert((1: Int).toJson)(equalTo("1")) &&
Expand Down

0 comments on commit 033687a

Please sign in to comment.