-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Scala 2.12 and 2.13 give different outputs for toString
- Loading branch information
1 parent
ef1d398
commit 3363571
Showing
3 changed files
with
149 additions
and
66 deletions.
There are no files selected for viewing
73 changes: 73 additions & 0 deletions
73
migrations/slick/src/test/scala-2.12/UnitTests/CommandTestsPreview.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,73 @@ | ||
package com.liyaos.forklift.slick.tests.unittests | ||
|
||
object CommandTestsPreview { | ||
|
||
val CommandTests_PreviewSeq: Seq[String] = List( | ||
s"""-------------------------------------------------------------------------------- | ||
NOT YET APPLIED MIGRATIONS PREVIEW: | ||
|
||
-------------------------------------------------------------------------------- | ||
""", | ||
s"""-------------------------------------------------------------------------------- | ||
NOT YET APPLIED MIGRATIONS PREVIEW: | ||
|
||
1 SqlMigration: | ||
${"\t"}[create table "users" ("id" INTEGER NOT NULL PRIMARY KEY,"first" VARCHAR(255) NOT NULL,"last" VARCHAR(255) NOT NULL)] | ||
|
||
-------------------------------------------------------------------------------- | ||
""", | ||
s"""-------------------------------------------------------------------------------- | ||
NOT YET APPLIED MIGRATIONS PREVIEW: | ||
|
||
2 DBIOMigration: | ||
${"\t"}CommandTests.profile.api.queryInsertActionExtensionMethods[CommandTests.this.UsersV2#TableElementType, Seq](CommandTests.UsersV2).++=(scala.collection.Seq[com.liyaos.forklift.slick.tests.unittests.UsersRow](UsersRow(1, "Chris", "Vogt"), UsersRow(2, "Yao", "Li"))) | ||
|
||
-------------------------------------------------------------------------------- | ||
""") | ||
|
||
val CommandTests_PreviewSeq_MySql = List( | ||
s"""-------------------------------------------------------------------------------- | ||
NOT YET APPLIED MIGRATIONS PREVIEW: | ||
|
||
-------------------------------------------------------------------------------- | ||
""", | ||
s"""-------------------------------------------------------------------------------- | ||
NOT YET APPLIED MIGRATIONS PREVIEW: | ||
|
||
1 SqlMigration: | ||
${"\t"}[create table `users` (`id` INTEGER NOT NULL PRIMARY KEY,`first` VARCHAR(255) NOT NULL,`last` VARCHAR(255) NOT NULL)] | ||
|
||
-------------------------------------------------------------------------------- | ||
""", | ||
s"""-------------------------------------------------------------------------------- | ||
NOT YET APPLIED MIGRATIONS PREVIEW: | ||
|
||
2 DBIOMigration: | ||
${"\t"}MySQLCommandTests.profile.api.queryInsertActionExtensionMethods[MySQLCommandTests.this.UsersV2#TableElementType, Seq](MySQLCommandTests.UsersV2).++=(scala.collection.Seq[com.liyaos.forklift.slick.tests.unittests.UsersRow](UsersRow(1, "Chris", "Vogt"), UsersRow(2, "Yao", "Li"))) | ||
|
||
-------------------------------------------------------------------------------- | ||
""") | ||
|
||
val CommandTests_PreviewSeq_Derby = List( | ||
s"""-------------------------------------------------------------------------------- | ||
NOT YET APPLIED MIGRATIONS PREVIEW: | ||
|
||
-------------------------------------------------------------------------------- | ||
""", | ||
s"""-------------------------------------------------------------------------------- | ||
NOT YET APPLIED MIGRATIONS PREVIEW: | ||
|
||
1 SqlMigration: | ||
${"\t"}[create table "users" ("id" INTEGER NOT NULL PRIMARY KEY,"first" VARCHAR(255) NOT NULL,"last" VARCHAR(255) NOT NULL)] | ||
|
||
-------------------------------------------------------------------------------- | ||
""", | ||
s"""-------------------------------------------------------------------------------- | ||
NOT YET APPLIED MIGRATIONS PREVIEW: | ||
|
||
2 DBIOMigration: | ||
${"\t"}DerbyCommandTests.profile.api.queryInsertActionExtensionMethods[DerbyCommandTests.this.UsersV2#TableElementType, Seq](DerbyCommandTests.UsersV2).++=(scala.collection.Seq[com.liyaos.forklift.slick.tests.unittests.UsersRow](UsersRow(1, "Chris", "Vogt"), UsersRow(2, "Yao", "Li"))) | ||
|
||
-------------------------------------------------------------------------------- | ||
""") | ||
} |
73 changes: 73 additions & 0 deletions
73
migrations/slick/src/test/scala-2.13/UnitTests/CommandTestsPreview.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,73 @@ | ||
package com.liyaos.forklift.slick.tests.unittests | ||
|
||
object CommandTestsPreview { | ||
|
||
val CommandTests_PreviewSeq: Seq[String] = List( | ||
s"""-------------------------------------------------------------------------------- | ||
NOT YET APPLIED MIGRATIONS PREVIEW: | ||
|
||
-------------------------------------------------------------------------------- | ||
""", | ||
s"""-------------------------------------------------------------------------------- | ||
NOT YET APPLIED MIGRATIONS PREVIEW: | ||
|
||
1 SqlMigration: | ||
${"\t"}[create table "users" ("id" INTEGER NOT NULL PRIMARY KEY,"first" VARCHAR(255) NOT NULL,"last" VARCHAR(255) NOT NULL)] | ||
|
||
-------------------------------------------------------------------------------- | ||
""", | ||
s"""-------------------------------------------------------------------------------- | ||
NOT YET APPLIED MIGRATIONS PREVIEW: | ||
|
||
2 DBIOMigration: | ||
${"\t"}CommandTests.profile.api.queryInsertActionExtensionMethods[CommandTests.this.UsersV2#TableElementType, [+A]Seq[A]](CommandTests.UsersV2).++=(scala.collection.immutable.Seq[com.liyaos.forklift.slick.tests.unittests.UsersRow](UsersRow(1, "Chris", "Vogt"), UsersRow(2, "Yao", "Li"))) | ||
|
||
-------------------------------------------------------------------------------- | ||
""") | ||
|
||
val CommandTests_PreviewSeq_MySql = List( | ||
s"""-------------------------------------------------------------------------------- | ||
NOT YET APPLIED MIGRATIONS PREVIEW: | ||
|
||
-------------------------------------------------------------------------------- | ||
""", | ||
s"""-------------------------------------------------------------------------------- | ||
NOT YET APPLIED MIGRATIONS PREVIEW: | ||
|
||
1 SqlMigration: | ||
${"\t"}[create table `users` (`id` INTEGER NOT NULL PRIMARY KEY,`first` VARCHAR(255) NOT NULL,`last` VARCHAR(255) NOT NULL)] | ||
|
||
-------------------------------------------------------------------------------- | ||
""", | ||
s"""-------------------------------------------------------------------------------- | ||
NOT YET APPLIED MIGRATIONS PREVIEW: | ||
|
||
2 DBIOMigration: | ||
${"\t"}MySQLCommandTests.profile.api.queryInsertActionExtensionMethods[MySQLCommandTests.this.UsersV2#TableElementType, [+A]Seq[A]](MySQLCommandTests.UsersV2).++=(scala.collection.immutable.Seq[com.liyaos.forklift.slick.tests.unittests.UsersRow](UsersRow(1, "Chris", "Vogt"), UsersRow(2, "Yao", "Li"))) | ||
|
||
-------------------------------------------------------------------------------- | ||
""") | ||
|
||
val CommandTests_PreviewSeq_Derby = List( | ||
s"""-------------------------------------------------------------------------------- | ||
NOT YET APPLIED MIGRATIONS PREVIEW: | ||
|
||
-------------------------------------------------------------------------------- | ||
""", | ||
s"""-------------------------------------------------------------------------------- | ||
NOT YET APPLIED MIGRATIONS PREVIEW: | ||
|
||
1 SqlMigration: | ||
${"\t"}[create table "users" ("id" INTEGER NOT NULL PRIMARY KEY,"first" VARCHAR(255) NOT NULL,"last" VARCHAR(255) NOT NULL)] | ||
|
||
-------------------------------------------------------------------------------- | ||
""", | ||
s"""-------------------------------------------------------------------------------- | ||
NOT YET APPLIED MIGRATIONS PREVIEW: | ||
|
||
2 DBIOMigration: | ||
${"\t"}DerbyCommandTests.profile.api.queryInsertActionExtensionMethods[DerbyCommandTests.this.UsersV2#TableElementType, [+A]Seq[A]](DerbyCommandTests.UsersV2).++=(scala.collection.immutable.Seq[com.liyaos.forklift.slick.tests.unittests.UsersRow](UsersRow(1, "Chris", "Vogt"), UsersRow(2, "Yao", "Li"))) | ||
|
||
-------------------------------------------------------------------------------- | ||
""") | ||
} |
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