From 5d862115bd31fcd42484293c1f64652192d95d26 Mon Sep 17 00:00:00 2001 From: Jon Pretty Date: Thu, 9 Nov 2017 16:34:18 +0000 Subject: Upgrade to SBT 1.0 and include testing binaries --- tests/lib/2.11/contextual-data_2.11-1.1.0.jar | Bin 0 -> 168497 bytes tests/lib/2.11/contextual_2.11-1.1.0.jar | Bin 0 -> 57393 bytes tests/lib/2.11/estrapade-macros_2.11-1.0.3.jar | Bin 0 -> 32679 bytes tests/lib/2.11/estrapade_2.11-1.0.3.jar | Bin 0 -> 109001 bytes tests/lib/2.12/contextual-data_2.12-1.1.0.jar | Bin 0 -> 149330 bytes tests/lib/2.12/contextual_2.12-1.1.0.jar | Bin 0 -> 48727 bytes tests/lib/2.12/estrapade-macros_2.12-1.0.3.jar | Bin 0 -> 26140 bytes tests/lib/2.12/estrapade_2.12-1.0.3.jar | Bin 0 -> 79193 bytes tests/src/main/scala/tests.scala | 18 ++++++++++-------- 9 files changed, 10 insertions(+), 8 deletions(-) create mode 100644 tests/lib/2.11/contextual-data_2.11-1.1.0.jar create mode 100644 tests/lib/2.11/contextual_2.11-1.1.0.jar create mode 100644 tests/lib/2.11/estrapade-macros_2.11-1.0.3.jar create mode 100644 tests/lib/2.11/estrapade_2.11-1.0.3.jar create mode 100644 tests/lib/2.12/contextual-data_2.12-1.1.0.jar create mode 100644 tests/lib/2.12/contextual_2.12-1.1.0.jar create mode 100644 tests/lib/2.12/estrapade-macros_2.12-1.0.3.jar create mode 100644 tests/lib/2.12/estrapade_2.12-1.0.3.jar (limited to 'tests') diff --git a/tests/lib/2.11/contextual-data_2.11-1.1.0.jar b/tests/lib/2.11/contextual-data_2.11-1.1.0.jar new file mode 100644 index 0000000..0324473 Binary files /dev/null and b/tests/lib/2.11/contextual-data_2.11-1.1.0.jar differ diff --git a/tests/lib/2.11/contextual_2.11-1.1.0.jar b/tests/lib/2.11/contextual_2.11-1.1.0.jar new file mode 100644 index 0000000..0f10ba6 Binary files /dev/null and b/tests/lib/2.11/contextual_2.11-1.1.0.jar differ diff --git a/tests/lib/2.11/estrapade-macros_2.11-1.0.3.jar b/tests/lib/2.11/estrapade-macros_2.11-1.0.3.jar new file mode 100644 index 0000000..3906f72 Binary files /dev/null and b/tests/lib/2.11/estrapade-macros_2.11-1.0.3.jar differ diff --git a/tests/lib/2.11/estrapade_2.11-1.0.3.jar b/tests/lib/2.11/estrapade_2.11-1.0.3.jar new file mode 100644 index 0000000..d0a3c0b Binary files /dev/null and b/tests/lib/2.11/estrapade_2.11-1.0.3.jar differ diff --git a/tests/lib/2.12/contextual-data_2.12-1.1.0.jar b/tests/lib/2.12/contextual-data_2.12-1.1.0.jar new file mode 100644 index 0000000..9513196 Binary files /dev/null and b/tests/lib/2.12/contextual-data_2.12-1.1.0.jar differ diff --git a/tests/lib/2.12/contextual_2.12-1.1.0.jar b/tests/lib/2.12/contextual_2.12-1.1.0.jar new file mode 100644 index 0000000..c0aee69 Binary files /dev/null and b/tests/lib/2.12/contextual_2.12-1.1.0.jar differ diff --git a/tests/lib/2.12/estrapade-macros_2.12-1.0.3.jar b/tests/lib/2.12/estrapade-macros_2.12-1.0.3.jar new file mode 100644 index 0000000..061da8d Binary files /dev/null and b/tests/lib/2.12/estrapade-macros_2.12-1.0.3.jar differ diff --git a/tests/lib/2.12/estrapade_2.12-1.0.3.jar b/tests/lib/2.12/estrapade_2.12-1.0.3.jar new file mode 100644 index 0000000..e6a365b Binary files /dev/null and b/tests/lib/2.12/estrapade_2.12-1.0.3.jar differ diff --git a/tests/src/main/scala/tests.scala b/tests/src/main/scala/tests.scala index 14345af..f79a51b 100644 --- a/tests/src/main/scala/tests.scala +++ b/tests/src/main/scala/tests.scala @@ -27,7 +27,7 @@ case object Blue extends Color object Tests extends TestApp { - def tests() = for(i <- 1 to 1000) { + def tests() = for (i <- 1 to 1000) { import examples._ test("construct a Show product instance") { @@ -39,7 +39,7 @@ object Tests extends TestApp { import examples._ Show.gen[Person].show(Person("John Smith", 34)) }.assert(_ == "Person(name=John Smith,age=34)") - + test("serialize a Branch") { import magnolia.examples._ implicitly[Show[String, Branch[String]]].show(Branch(Leaf("LHS"), Leaf("RHS"))) @@ -70,22 +70,22 @@ object Tests extends TestApp { implicitly[Show[String, Leaf[java.lang.String]]] """ }.assert(_ == Returns(fqt"magnolia.examples.Show[String,magnolia.tests.Leaf[String]]")) - + test("construction of Show instance for Tree") { scalac""" import magnolia.examples._ implicitly[Show[String, Tree[String]]] """ }.assert(_ == Returns(fqt"magnolia.examples.Show[String,magnolia.tests.Tree[String]]")) - + test("serialize a Leaf") { implicitly[Show[String, Leaf[String]]].show(Leaf("testing")) }.assert(_ == "Leaf(value=testing)") - + test("serialize a Branch as a Tree") { implicitly[Show[String, Tree[String]]].show(Branch(Leaf("LHS"), Leaf("RHS"))) }.assert(_ == "Branch(left=Leaf(value=LHS),right=Leaf(value=RHS))") - + test("serialize case object") { implicitly[Show[String, Red.type]].show(Red) }.assert(_ == "Red()") @@ -107,7 +107,9 @@ object Tests extends TestApp { }.assert(_ == Person("John Smith", 32)) test("decode a nested product") { - implicitly[Decoder[Address]].decode("""Address(line1=53 High Street,occupant=Person(name=Richard Jones,age=44))""") + implicitly[Decoder[Address]].decode( + """Address(line1=53 High Street,occupant=Person(name=Richard Jones,age=44))""" + ) }.assert(_ == Address("53 High Street", Person("Richard Jones", 44))) test("show error stack") { @@ -121,6 +123,6 @@ object Tests extends TestApp { | in parameter 'integer' of product type Alpha | in parameter 'alpha' of product type Beta |""")) - + } } -- cgit v1.2.3