-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main'
- Loading branch information
Showing
66 changed files
with
1,467 additions
and
677 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 0 additions & 24 deletions
24
tests/jvm/src/test/scala-2/zio/schema/PlatformSpecificGen.scala
This file was deleted.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
tests/jvm/src/test/scala/zio/schema/PlatformSpecificGen.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package zio.schema | ||
|
||
import zio.schema.SchemaGen.SchemaTest | ||
import zio.schema.StandardTypeGen.StandardTypeAndGen | ||
import zio.test.Gen | ||
|
||
object PlatformSpecificGen { | ||
|
||
val platformSpecificStandardTypes: Gen[Any, StandardType[Any]] = Gen.fromIterable( | ||
List( | ||
StandardType.CurrencyType | ||
).map(_.asInstanceOf[StandardType[Any]]) | ||
) | ||
|
||
def platformSpecificStandardTypeAndGen(standardTypeGen: StandardType[Any]): StandardTypeAndGen[Any] = | ||
standardTypeGen match { | ||
case typ if typ.isInstanceOf[StandardType.CurrencyType.type] => typ -> Gen.currency | ||
case _ => StandardType.UnitType.asInstanceOf[StandardType[Any]] -> Gen.unit | ||
} | ||
|
||
val platformSpecificSchemasAndGens: List[SchemaTest[Any]] = List( | ||
SchemaTest("Currency", StandardType.CurrencyType.asInstanceOf[StandardType[Any]], Gen.currency) | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.