-
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.
Run all possible test for all Scala 3 (#709)
- Loading branch information
Showing
40 changed files
with
282 additions
and
260 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
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
87 changes: 0 additions & 87 deletions
87
tests/shared/src/test/scala-2/zio/schema/StandardTypeGen.scala
This file was deleted.
Oops, something went wrong.
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
File renamed without changes.
File renamed without changes.
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.