summaryrefslogtreecommitdiff
path: root/test/files/jvm/duration-tck.scala
Commit message (Collapse)AuthorAgeFilesLines
* SI-8677 Duration: Zero - Inf should be MinusInfPaolo G. Giarrusso2014-06-281-0/+5
| | | | Fixes #8677. Add basic tests.
* SI-7003 Partest redirects stderr to log fileSom Snytt2013-05-251-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some scalac output is on stderr, and it's useful to see that in the log file, especially for debugging. Adds a line filter for logs, specified as "filter: pattern" in the test source. Backslashes are made forward only when detected as paths. Test alignments: Deprecations which do not pertain to the system under test are corrected in the obvious way. When testing deprecated API, suppress warnings by deprecating the Test object. Check files are updated with useful true warnings, instead of running under -nowarn. Language feature imports as required, instead of running under -language. Language feature not required, such as casual use of postfix. Heed useful warning. Ignore broken warnings. (Rarely, -nowarn.) Inliner warnings pop up under -optimise only, so for now, just filter them out where they occur. Debug output from the test required an update.
* 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)