Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix a test

  • Loading branch information...
commit 5beac0ad32c8ef5cc993ac129a03891e2743a9b5 1 parent c173ea1
Joni Freeman authored nafg committed
View
5 core/json/src/test/scala/net/liftweb/json/SerializationExamples.scala
@@ -121,7 +121,7 @@ object SerializationExamples extends Specification {
}
"Case class from type constructors example" in {
- val p = ProperType(TypeConstructor(Chicken(10)), (25, Player("joe")))
+ val p = ProperType(TypeConstructor(Chicken(10)), Pair(25, Player("joe")))
val ser = swrite(p)
read[ProperType](ser) mustEqual p
}
@@ -374,4 +374,5 @@ case class OptionOfTupleOfDouble(position: Option[Tuple2[Double, Double]])
case class Player(name: String)
case class TypeConstructor[A](x: A)
-case class ProperType(x: TypeConstructor[Chicken], t: (Int, Player))
+case class Pair[A, B](fst: A, snd: B)
+case class ProperType(x: TypeConstructor[Chicken], t: Pair[Int, Player])
Please sign in to comment.
Something went wrong with that request. Please try again.