summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnolia K <magnolia.k@icloud.com>2017-01-22 11:03:16 +0900
committerMagnolia K <magnolia.k@icloud.com>2017-01-22 11:17:32 +0900
commite53b59cced40c6e19b160e9616f33105449746bf (patch)
treeb6358166fd0ea6478eb1c9fd1e6aa927bda5ea03
parent537cb5bca7eb73750fc2e86e4a2ea6605714482b (diff)
downloadspray-json-e53b59cced40c6e19b160e9616f33105449746bf.tar.gz
spray-json-e53b59cced40c6e19b160e9616f33105449746bf.tar.bz2
spray-json-e53b59cced40c6e19b160e9616f33105449746bf.zip
Fixed warning about unit.
In scala 2.11 and later, warning message is output if try to interpret it automatically with the value of Unit when simply writing "()". Therefore, write "(())".
-rw-r--r--src/test/scala/spray/json/BasicFormatsSpec.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/scala/spray/json/BasicFormatsSpec.scala b/src/test/scala/spray/json/BasicFormatsSpec.scala
index 00da813..8417df2 100644
--- a/src/test/scala/spray/json/BasicFormatsSpec.scala
+++ b/src/test/scala/spray/json/BasicFormatsSpec.scala
@@ -127,7 +127,7 @@ class BasicFormatsSpec extends Specification with DefaultJsonProtocol {
().toJson mustEqual JsNumber(1)
}
"convert a JsNumber to Unit" in {
- JsNumber(1).convertTo[Unit] mustEqual ()
+ JsNumber(1).convertTo[Unit] mustEqual (())
}
}