Nim/tests/stdlib
c-blake d59441340d Fixes incorrect fd==0 test on Unix; Conserves handles by default. (#5512)
* Fix 2 problems.  First, 0 is a valid fd on Unix (easily gotten if user first
closes all fds and then starts using memfiles).  Use -1 instead for an invalid
fd.  Second, it is best practice to conserve open fds on Unix and file handles
on Windows.  These handles are not needed unless the user wants to remap the
memory with ``mapMem`` (or a hypothetical future ``proc resize``).  Adding a
new bool param ``allowRemap=false`` to ``memfiles.open`` solves this cleanly
in a "mostly" backward compatible way.  This is only "mostly" because the
default ``false`` case does not keep unneeded resources allocated, but that
most sensible default means that any ``mapMem`` callers need to fix all their
open calls to have allowRemap=true, as this PR also does for tmemfiles2.nim.
* Include backwards compatibility note.
2017-03-12 20:45:10 +01:00
..
nre More robust tests for #5453 (#5469) 2017-03-03 01:30:49 +01:00
talgorithm.nim tests: Trim .nim files trailing whitespace 2015-09-04 23:04:32 +02:00
tbug5382.nim Fixes #5382 2017-02-13 13:35:40 +01:00
tcount.nim fixes #1845, fixes #2224 2015-03-12 11:08:03 +01:00
tcputime.nim new tester; all tests categorized 2014-01-13 02:10:03 +01:00
tcritbits.nim tests: Trim .nim files trailing whitespace 2015-09-04 23:04:32 +02:00
techo.nim further adaptations 2014-08-29 09:12:12 +02:00
testequivalence.nim Remove unnecessary import 2014-07-19 14:37:47 +02:00
tformat.nim tests: Trim .nim files trailing whitespace 2015-09-04 23:04:32 +02:00
tgetfileinfo.nim make tgetfileinfo work on Windows 2016-10-24 20:18:49 +02:00
thashes.nim new tester; all tests categorized 2014-01-13 02:10:03 +01:00
thtmlparser2813.nim Added test file for #2813. 2015-06-20 11:37:29 +01:00
thtmlparser2814.nim Update htmlparser test `output` variable 2016-07-28 20:25:12 +04:00
thttpclient.nim Implement streamed async/sync downloadFile and deprecate old one. 2017-02-11 14:00:53 +01:00
thttpcore.nim Add HTTP header deletion, improve tests 2016-12-01 00:11:59 +00:00
tio.nim fixes #5349 2017-02-08 14:33:05 +01:00
tlists.nim tests: Trim .nim files trailing whitespace 2015-09-04 23:04:32 +02:00
tmarshal.nim Use array encoding for non-UTF-8 strings in marshal. Fixes #4779. 2016-09-16 17:02:34 +07:00
tmath.nim moved random procs from math to its own module (breaking change) 2016-05-30 16:24:52 +02:00
tmath2.nim tests: Trim .nim files trailing whitespace 2015-09-04 23:04:32 +02:00
tmemfiles1.nim minor fix - remove comments from discard section 2015-09-27 16:21:47 +10:00
tmemfiles2.nim Fixes incorrect fd==0 test on Unix; Conserves handles by default. (#5512) 2017-03-12 20:45:10 +01:00
tmemlines.nim Move tests to stdlib. 2015-08-03 12:35:57 -04:00
tmemlinesBuf.nim Move tests to stdlib. 2015-08-03 12:35:57 -04:00
tmemslices.nim Move tests to stdlib. 2015-08-03 12:35:57 -04:00
tmget.nim Rename mget to [] 2015-03-31 00:32:39 +02:00
tmitems.nim Added deques module, deprecating queues 2016-11-24 19:11:51 +07:00
tnativesockets.nim Add gethostname to nativesockets (#5443) 2017-03-01 09:44:24 +01:00
tnet.nim Make IP address checking more obvious, and add tests for the net module. 2015-03-07 12:37:52 +11:00
tnet_ll.nim Fixed tests to expect [Suite] output from unittest 2016-08-24 22:32:29 +02:00
tnilecho.nim add test: echo a seq with a nil value 2016-11-01 13:41:31 +10:00
tnre.nim close #5472 nre tests should be run (#5474) 2017-03-04 11:13:08 +01:00
tos.nim add copyDir stdlib test 2017-01-10 11:27:03 +01:00
tosprocterminate.nim tests: Trim .nim files trailing whitespace 2015-09-04 23:04:32 +02:00
tparscfg.nim Update tparscfg.nim 2016-05-02 16:59:38 +08:00
tparseuints.nim Fixed tests to expect [Suite] output from unittest 2016-08-24 22:32:29 +02:00
tparsopt.nim renamed writeln to writeLine in tests 2015-06-19 01:34:34 -05:00
tpegs.nim makes tests green 2016-01-15 14:44:54 +01:00
tpermutations.nim Adapt the tester for permutations 2015-02-02 08:06:19 +01:00
tposix.nim renamed writeln to writeLine in tests 2015-06-19 01:34:34 -05:00
tquit.nim tests: Trim .nim files trailing whitespace 2015-09-04 23:04:32 +02:00
tregex.nim tests: Trim .nim files trailing whitespace 2015-09-04 23:04:32 +02:00
treguse.nim tests: Trim .nim files trailing whitespace 2015-09-04 23:04:32 +02:00
treloop.nim Add test case for infinite loop in RE 2015-04-09 17:28:26 +02:00
trepr.nim tests: Trim .nim files trailing whitespace 2015-09-04 23:04:32 +02:00
trepr2.nim tests: Trim .nim files trailing whitespace 2015-09-04 23:04:32 +02:00
trstgen.nim Fixes to YAML highlighting support, added tests 2016-04-01 21:35:46 +02:00
tsegfaults.nim new segfaults.nim stdlib module works on Windows 2017-01-20 17:08:11 +01:00
tsinglylinkedring.nim Fix SinglyLinkedRing in lists module 2015-02-01 03:04:18 +01:00
tsortcall.nim new tester; all tests categorized 2014-01-13 02:10:03 +01:00
tsplit.nim Fix split stdlib test 2016-07-01 07:24:30 -06:00
tsplit2.nim Update unit test to handle AssertionError instead of ValueError for #5119 2016-12-21 19:06:11 -08:00
tstreams.nim new tester; all tests categorized 2014-01-13 02:10:03 +01:00
tstreams2.nim fix discard output: section 2015-09-27 15:49:40 +10:00
tstring.nim fix string slice & splice (#5311) 2017-02-01 12:13:01 +01:00
tstrset.nim tests: Trim .nim files trailing whitespace 2015-09-04 23:04:32 +02:00
tstrtabs.nim tests: Trim .nim files trailing whitespace 2015-09-04 23:04:32 +02:00
tstrutil.nim Improve & optimize strutils 'find' procs (#5196) 2017-01-11 09:48:31 +01:00
ttime.nim Parse 'Z' as valid timezone if offset is expected 2016-11-14 18:46:35 +01:00
tunidecode.nim further adaptations 2014-08-29 09:12:12 +02:00
tunittest.nim Make use of used in unittest (#5410) 2017-02-25 21:18:16 +01:00
twalker.nim tests: Trim .nim files trailing whitespace 2015-09-04 23:04:32 +02:00
twchartoutf8.nim cleaned up twchartoutf8 test 2015-08-21 21:40:24 +02:00
txmlgen.nim further adaptations 2014-08-29 09:12:12 +02:00
txmltree.nim Rewrite xmltools.innerText 2016-11-30 10:38:22 +07:00