Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ collections (`List`, `Vector`, `Seq`, `Set`, `Map`).
### scala-cli

```scala
//> using scala 3.9.0-RC4
//> using scala 3.9.0
//> using dep com.halotukozak::mcodec::<version>
```

Expand All @@ -43,7 +43,7 @@ libraryDependencies += "com.halotukozak" %% "mcodec" % "<version>"
### mill

```scala
def scalaVersion = "3.9.0-RC4"
def scalaVersion = "3.9.0"
def mvDeps = Seq(mvn"com.halotukozak::mcodec::<version>")
```

Expand Down
4 changes: 2 additions & 2 deletions project.scala
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//> using scala 3.9.0-RC6
//> using scala 3.9.0

//> using dep com.halotukozak::made::0.4.0
//> using dep com.halotukozak::made::0.4.1

//> using test.dep org.scalameta::munit::1.3.5
//> using test.dep org.scalameta::munit-scalacheck::1.3.0
Expand Down
8 changes: 8 additions & 0 deletions test/mcodec/BsonRoundTripTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ class BsonRoundTripTest extends RoundTrip(BsonBackend):

given Arbitrary[Double] = Arbitrary(Arbitrary.arbitrary[Double].suchThat(java.lang.Double.isFinite))

// BSON field names are cstrings and cannot contain a NUL byte (see BsonOutput.writeCString).
given Arbitrary[Map[String, Int]] = Arbitrary(
Gen.mapOf(for
k <- Arbitrary.arbitrary[String].map(_.filterNot(_ == '\u0000'))
v <- Arbitrary.arbitrary[Int]
yield k -> v),
)

// FlatShape Arbitrary — copy from FlatDiscriminatorTest (that given is scoped to its own suite).
given Arbitrary[FlatShape] = Arbitrary(
Gen.oneOf(
Expand Down