Permalink
Browse files

Fix a test

  • Loading branch information...
Joni Freeman authored and nafg committed Aug 2, 2012
1 parent c173ea1 commit 5beac0ad32c8ef5cc993ac129a03891e2743a9b5
Showing with 3 additions and 2 deletions.
  1. +3 −2 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])

0 comments on commit 5beac0a

Please sign in to comment.