summaryrefslogtreecommitdiff
path: root/test/files/jvm/duration-tck.scala
Commit message (Collapse)AuthorAgeFilesLines
* relax time constraint in duration-tck.scala (for Windows VMs)Roland2013-02-261-2/+3
|
* avoid single-art assert where harmful in duration-tckRoland2012-10-181-4/+7
|
* some small remaining fixesRoland2012-09-201-1/+4
| | | | | | | | - added test for “span” and “fromNow” qualifiers - make those actually work even when there is an expected type - add ScalaDoc to them - verify (and fix) conversion Deadline -> FiniteDuration - also make Int * Duration => FiniteDuration work (and test it)
* Adjustments to scala.concurrent.duration.Paul Phillips2012-09-191-10/+9
| | | | | | | | More use of implicit classes and value classes; aliased units to make importing TimeUnit and TimeUnit._ unnecessary; placed some classes in their own files because "the unit of compilation is the file" and we shouldn't bundle more than necessary; fixed some examples.
* move Duration (incl. DSL) into scala.concurrent.duration packageRoland2012-09-191-2/+1
| | | | | | | | | so that the full package can be imported naturally: import scala.concurrent.duration._ will give you all the types (Duration, FiniteDuration, Deadline) and the DSL for constructing these.
* enable integer multiplication/divison on FiniteDuration, see SI-6389Roland2012-09-181-1/+8
| | | | | | | | | - without this "2.seconds * 2" will not return FiniteDuration but Duration - added test case verifying this behavior - matches normal arithmetics: integers throw on div-by-zero while doubles yield infinity; extended here to include overflow protection on integer multiplication
* two more minor cleanups to DurationRoland2012-09-111-6/+1
| | | | | - copy partest TestUtil.intercept change from PR 1279 branch - add comment on non-obvious match cases
* fix some one more issue in DurationRoland2012-09-071-6/+12
| | | | | | | - Inf / Zero == Inf - add some more missing test cases - clarify magic constant - move exception descriptions into proper @throws docs
* second round of Duration cleanupRoland2012-09-071-79/+157
| | | | | | | | - make Duration behave consistent with Double's non-finite semantics - add ScalaDoc - add complete test suite - change overflow protection impl after review comments - clean up code
* several fixes to scala.concurrent.util.DurationRoland2012-09-051-0/+107
- add test cases (migrated from Akka sources) - add overflow checking (will throw IllegalArgumentException instead of giving wrong results) - make string parsing more precise when giving >100days in nanoseconds - make method signatures more precise in retaining FiniteDuration throughout calculations - fix mul/div of infinities by negative number - add Ordering for Deadline (was accidentally left out earlier)