diff options
author | Magnolia K <magnolia.k@icloud.com> | 2017-01-22 11:03:16 +0900 |
---|---|---|
committer | Magnolia K <magnolia.k@icloud.com> | 2017-01-22 11:17:32 +0900 |
commit | e53b59cced40c6e19b160e9616f33105449746bf (patch) | |
tree | b6358166fd0ea6478eb1c9fd1e6aa927bda5ea03 /src | |
parent | 537cb5bca7eb73750fc2e86e4a2ea6605714482b (diff) | |
download | spray-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 "(())".
Diffstat (limited to 'src')
-rw-r--r-- | src/test/scala/spray/json/BasicFormatsSpec.scala | 2 |
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 (()) } } |