Skip to content

Commit

Permalink
Fix a test
Browse files Browse the repository at this point in the history
  • Loading branch information
Joni Freeman authored and Naftoli Gugenheim committed Sep 13, 2012
1 parent c173ea1 commit 5beac0a
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -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
}
Expand Down Expand Up @@ -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.