Files
Nim/tests
Jonathan Bernard 68d3486f5a Bugfix for times.initInterval (issue #4889)
`initInterval` had logic to calculate and carry overflowed fields (65 seconds
turns into 5 seconds and carries 1 minute). However, we were not including that
carried value when we recalculate the carry over for the next period of time.So
if you had, for example, 3600 seconds, we carried 60 minutes into the minutes
calculation, but when we calculated how much we should carry into the hours
value we only considered what the user originally supplied for the minutes
field, and forgot to include those 60 carried minute.

So, for example, with the previous implementation this was true:

`seconds(60 * 60 * 24) == seconds(0)`

Or, as failing tests:

```nimrod
import times

assert seconds(60 * 60 * 24) != seconds(0)
assert seconds(60 * 60 * 24) == days(1)
```
2016-10-12 15:44:21 -05:00
..
2015-09-09 21:32:29 +08:00
2016-08-25 20:21:08 +02:00
2016-08-25 20:21:08 +02:00
2015-03-17 17:50:32 +01:00
2016-09-13 16:33:43 +02:00
2015-03-04 21:19:38 +01:00
2016-08-25 21:56:21 +02:00
2014-01-13 02:10:03 +01:00
2016-03-01 23:07:22 +01:00
2016-08-02 14:53:21 +02:00
2016-09-13 16:33:43 +02:00
2016-01-08 12:08:42 +01:00
2015-09-12 11:07:47 +02:00
2016-08-26 15:16:11 +02:00
2016-05-18 13:51:07 +03:00
2016-09-30 22:14:29 +02:00
2016-05-22 14:28:53 +02:00
2016-09-01 13:02:53 +02:00
2014-01-13 02:10:03 +01:00
2016-08-22 18:31:26 +02:00
2016-09-20 17:01:53 +03:00
2015-03-17 00:02:47 +01:00
2016-08-04 19:36:13 +02:00
2016-08-26 14:49:57 +02:00
2016-09-15 04:20:24 +02:00
2016-08-26 14:49:57 +02:00
2016-03-29 12:19:49 +02:00
2016-07-10 01:17:08 +02:00
2016-09-01 13:02:53 +02:00
2016-01-05 07:52:56 +07:00
2016-09-30 10:39:57 +02:00
2016-09-13 16:33:43 +02:00
2016-09-24 02:27:12 +02:00
2016-05-28 02:17:13 +02:00
2015-09-30 11:42:50 -07:00
2015-10-01 20:32:49 +10:00
2016-08-27 13:26:16 +02:00
2016-03-23 22:29:28 +08:00
2016-08-26 14:36:46 +02:00
2015-10-31 13:30:07 -05:00
2016-05-27 19:18:08 +02:00
2016-07-19 19:27:38 +02:00
2016-05-28 22:40:28 +02:00
2015-10-15 16:04:53 +03:00
2016-08-23 01:10:34 +02:00
2013-03-16 23:53:07 +01:00

This directory contains the test cases.
Each test must have a filename of the form: ``t*.nim``

Each test can contain a spec in a ``discard """"""`` block.

The folder ``rodfiles`` contains special tests that test incremental
compilation via symbol files.

The folder ``dll`` contains simple DLL tests.

The folder ``realtimeGC`` contains a test for validating that the realtime GC
can run properly without linking against the nimrtl.dll/so. It includes a C
client and platform specific build files for manual compilation.