diff options
author | triggerNZ <tin.pavlinic@gmail.com> | 2015-11-24 10:01:51 +1100 |
---|---|---|
committer | triggerNZ <tin.pavlinic@gmail.com> | 2015-11-24 10:01:51 +1100 |
commit | 22addc63096986b16d38dcd796d843eb6678fc01 (patch) | |
tree | 5f53b0943e5b1b12b85a23d951eb1d64cfb7fe8f /test/junit/scala | |
parent | a24fe19bccb7ae18342bcfc1087bf66b5422a7b3 (diff) | |
download | scala-22addc63096986b16d38dcd796d843eb6678fc01.tar.gz scala-22addc63096986b16d38dcd796d843eb6678fc01.tar.bz2 scala-22addc63096986b16d38dcd796d843eb6678fc01.zip |
SI-9363 - Add empty serializable
Diffstat (limited to 'test/junit/scala')
-rw-r--r-- | test/junit/scala/PartialFunctionSerializationTest.scala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/junit/scala/PartialFunctionSerializationTest.scala b/test/junit/scala/PartialFunctionSerializationTest.scala index d4f20f0019..d525b045cd 100644 --- a/test/junit/scala/PartialFunctionSerializationTest.scala +++ b/test/junit/scala/PartialFunctionSerializationTest.scala @@ -31,4 +31,6 @@ class PartialFunctionSerializationTest { @Test def canSerializeUnlifted = assertSerializable(Function.unlift((x: Int) => Some(x))) @Test def canSerializeAndThen = assertSerializable(pf1.andThen((x: Int) => x)) + + @Test def canSerializeEmpty = assertSerializable(PartialFunction.empty) } |