From cd2843fa2689d8f4ecef3a25384b2ed62fe7b92e Mon Sep 17 00:00:00 2001 From: michelou Date: Tue, 21 Apr 2009 13:19:57 +0000 Subject: add serialization test, disabled patmat debug t... add serialization test, disabled patmat debug traces --- test/files/jvm/serialization.scala | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'test/files/jvm/serialization.scala') diff --git a/test/files/jvm/serialization.scala b/test/files/jvm/serialization.scala index 609210e64a..516fa16de2 100755 --- a/test/files/jvm/serialization.scala +++ b/test/files/jvm/serialization.scala @@ -384,6 +384,24 @@ object Test6 { } } +object Test7 { + @serializable + class A(a: Int) { +// def this() { this(0) } + val f = (x: Int) => x + a + } + try { + val a = new A(1) + val f1: Int => Int = Serialize.read(Serialize.write(a.f)) + + EqualityTest.check(a.f, f1) + } + catch { + case e: Exception => + println("Error in Test7: " + e) + } +} + //############################################################################ // Test code @@ -395,6 +413,7 @@ object Test { Test4_xml Test5 Test6 + Test7 } } -- cgit v1.2.3