diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-07-03 11:01:02 +0200 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-07-03 11:01:02 +0200 |
commit | 08782ee9857763bf8c9185c1778dc4a6ce6deac4 (patch) | |
tree | 65f7c3e25c6071c202cd566fa3ed8a8b9bc68994 /test/files/jvm/duration-tck.scala | |
parent | 716362a6c9d0eac327b5e7a954bded4436ae8f95 (diff) | |
parent | dead39dc5f21c6eac41788e93426c50ddd398c24 (diff) | |
download | scala-08782ee9857763bf8c9185c1778dc4a6ce6deac4.tar.gz scala-08782ee9857763bf8c9185c1778dc4a6ce6deac4.tar.bz2 scala-08782ee9857763bf8c9185c1778dc4a6ce6deac4.zip |
Merge pull request #3843 from Blaisorblade/topic/fix-minus-inf
SI-8677 Duration: Zero - Inf should be MinusInf
Diffstat (limited to 'test/files/jvm/duration-tck.scala')
-rw-r--r-- | test/files/jvm/duration-tck.scala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/files/jvm/duration-tck.scala b/test/files/jvm/duration-tck.scala index 3bc8a2c100..7db6c49964 100644 --- a/test/files/jvm/duration-tck.scala +++ b/test/files/jvm/duration-tck.scala @@ -61,6 +61,11 @@ object Test extends App { minf - inf mustBe minf minf + minf mustBe minf + for (i <- Seq(zero, one, two, three)) { + i - inf mustBe minf + i - minf mustBe inf + } + inf.compareTo(inf) mustBe 0 inf.compareTo(one) mustBe 1 inf.compareTo(minf) mustBe 1 |