Nim/tests/stdlib
metagn 2bd1aa186e
New/better macro pragmas, mark some as experimental (#19406)
* New/better macro pragmas, make some experimental

fix #15920, close #18212, close #14781, close #6696,
close https://github.com/nim-lang/RFCs/issues/220

Variable macro pragmas have been changed to
only take a unary section node.
They can now also be applied in sections with multiple variables,
as well as `const` sections. They also accept arguments.

Templates now support macro pragmas, mirroring other routine types.

Type and variable macro pragmas have been made experimental.
Symbols without parentheses instatiating nullary macros or templates
has also been documented in the experimental manual.

A check for a redefinition error based on the left hand side of variable
definitions when using variable macro pragmas was disabled.
This nerfs `byaddr` specifically, however this has been documented as
a consequence of the experimental features `byaddr` uses.

Given how simple these changes are I'm worried if I'm missing something.

* accomodate compiler boot

* allow weird pragmas

* add test for #10994

* remove some control flow, try remove some logic
2022-01-20 20:57:50 +01:00
..
concurrency Resolve cross file resolution errors in atomics (#19422) [backport:1.6] 2022-01-20 13:58:59 +01:00
nre remove some noises in tests (#16448) 2020-12-27 14:45:57 +01:00
genericstrformat.nim Strformat symbol binding (#10927) 2019-04-05 15:27:04 +02:00
mgenast.nim new genAst as replacement for quote do (#17426) 2021-04-02 13:11:03 +02:00
mimportutils.nim make privateAccess work with generic types and generic instantiations; fix a SIGSEGV (#18260) 2021-06-19 11:24:46 -07:00
mintsets.nim packedsets fix regression introduced in #15564 (#16060) 2020-11-20 08:07:51 +01:00
mjsonexternproc.nim Reorder json add and %, fixes #6385 (#6388) 2017-09-16 19:09:44 +01:00
mstackframes.nim stacktraces can now show custom runtime msgs per frame (#13351) 2020-03-30 13:45:32 +02:00
osproctest.nim Add workingDir parameter to execProcess and test (#9549) 2018-11-26 10:28:44 +01:00
somesql.sql Parse the usage of the SQL in operator properly (#9527) 2018-10-28 13:34:57 +01:00
t7686.nim add tests for #7686 (#15771) 2020-10-29 18:12:14 +01:00
t8925.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
t9754.nim minor 2020-11-13 16:15:13 +08:00
t10231.nim testament: error instead of silently ignore invalid targets; remove pointless alias target vs targets; document matrix; DRY (#16343) 2020-12-14 10:58:29 +01:00
t14139.nim use doAssert in tests (#16486) 2020-12-28 14:13:21 +01:00
t15663.nim fix #15663 (#15839) [backport:1.4] 2020-11-05 14:00:49 +01:00
talgorithm.nim add algorithm.merge (#16182) 2021-03-23 10:49:02 +01:00
tarithmetics.nim js generates spurious >>> on shr (#17767) 2021-04-21 19:47:01 +02:00
tasynchttpserver.nim Add barebones asynchttpserver tests (#13883) 2020-04-05 21:16:13 +02:00
tasynchttpserver_transferencoding.nim Disable tasynchttpserver_transferencoding on FreeBSD (#18122) 2021-05-29 12:44:39 -07:00
tbase64.nim improve tbase64.nim (#17964) 2021-05-07 17:40:16 -07:00
tbitops.nim Improve documentation for bitops (#16961) 2021-02-15 21:17:45 +01:00
tbitops.nim.cfg minor fix (#16624) 2021-01-07 19:16:26 +01:00
tcgi.nim follow #15860 clean cgi module (#16487) 2020-12-27 19:46:21 +01:00
tcmdline.nim [nodejs backend] paramStr, paramCount (#17082) 2021-02-18 08:26:50 +01:00
tcomplex.nim Improve documentation for complex (#16588) 2021-01-05 17:50:15 +01:00
tcookies.nim [stdlib] make cookies module modern (#17116) 2021-02-24 10:14:19 +01:00
tcritbits.nim use doAssert in tests (#16486) 2020-12-28 14:13:21 +01:00
tcstring.nim fix #16693: testament spec nimout too lax (#16698) 2021-04-04 13:47:28 -07:00
tcstrutils.nim make cstrutils work in VM (#16590) 2021-01-05 17:52:26 +01:00
tdecls.nim New/better macro pragmas, mark some as experimental (#19406) 2022-01-20 20:57:50 +01:00
tdecode_helpers.nim use hexchar in stdlib (#16290) 2020-12-17 13:41:05 +01:00
tdeques.nim use sink and lent in deques (#17661) 2021-04-07 14:17:48 +02:00
tdiff.nim experimental/diff: move isMainModule block to tests/stdlib/tdiff.nim (#16172) 2020-11-28 11:59:08 -08:00
tdochelpers.nim style usages part one (openarray => openArray) (#19321) 2022-01-04 13:29:50 +01:00
teditdistance.nim use doAssert in tests (#16486) 2020-12-28 14:13:21 +01:00
tencodings.nim [std/encodings]move to tests (#17866) 2021-04-29 09:51:54 +02:00
tenumerate.nim use doAssert in tests (#16486) 2020-12-28 14:13:21 +01:00
tenumutils.nim add typetraits.OrdinalEnum, enumutils.symbolName (#17281) 2021-03-10 08:08:24 -08:00
tenvvars.nim Added std/envvars for env vars handling (#19421) 2022-01-20 13:55:19 +01:00
texitprocs.nim addQuitProc now works with closures, and c, js(node/browser) backend; fix some bugs in testament (#14342) 2020-06-16 11:43:48 +02:00
tfdleak.nim make tests/stdlib tests joinable (#14626) 2020-06-15 13:27:33 +02:00
tfdleak_multiple.nim make tests/stdlib tests joinable (#14626) 2020-06-15 13:27:33 +02:00
tfenv.nim Link the <fenv.h> header (#16597) 2021-01-05 20:51:51 +01:00
tfrexp1.nim fix math.frexp function signature (#16725) 2021-02-17 19:27:48 +01:00
tgenast.nim new genAst as replacement for quote do (#17426) 2021-04-02 13:11:03 +02:00
tgetaddrinfo.nim Fix #14091 and #14093 - test failures on NetBSD (#14096) 2020-04-24 09:18:44 +02:00
tgetfileinfo.nim fixes #18565 (#18593) 2021-07-27 09:36:19 +02:00
tgetprotobyname.nim fix #16256: nimout: <empty> should give error (vacuously true); improve a few tests (#18089) 2021-05-31 13:39:19 +02:00
tglobs.nim fix nativeToUnixPath (#18501) 2021-07-17 07:54:47 +02:00
thashes.nim rename nimEnableHashRef [backport] (#18941) 2021-10-04 21:28:13 +02:00
theapqueue.nim Improve the heapqueue module (#17034) 2021-02-15 13:57:15 +01:00
thighlite.nim follow-up #17837: add Console for interactive sessions (#17930) 2021-05-06 10:58:01 +02:00
thtmlparser.nim use doAssert in tests (#16486) 2020-12-28 14:13:21 +01:00
thttpclient.nim Fix SIGSEGV in httpclient response body (#16766) 2021-01-22 15:04:52 +01:00
thttpclient_ssl.nim fix: fixes bug in CVerifyPeerUseEnvVars (#19247) 2021-12-14 12:22:10 +00:00
thttpclient_ssl_cert.pem SSL certificate verify GitHub action (#13697) 2020-03-20 17:11:39 +01:00
thttpclient_ssl_key.pem SSL certificate verify GitHub action (#13697) 2020-03-20 17:11:39 +01:00
thttpclient_standalone.nim Removed hard coded ports from thttpclient_standalone.nim. (#18374) 2021-06-30 10:22:38 -07:00
thttpcore.nim use doAssert in tests (#16486) 2020-12-28 14:13:21 +01:00
timportutils.nim make privateAccess work with generic types and generic instantiations; fix a SIGSEGV (#18260) 2021-06-19 11:24:46 -07:00
tintsets.nim packedsets fix regression introduced in #15564 (#16060) 2020-11-20 08:07:51 +01:00
tio.nim add io.readChars overload (simpler, less error prone) (#16044) 2021-02-22 20:13:08 +01:00
tisolation.nim Fix #17199 (#17348) 2021-03-26 13:05:51 +01:00
tjsbigints.nim add number literal jsbigints.big (#17707) 2021-04-13 09:33:28 +02:00
tjson.nim [backport:1.0] json: limit recursion depth (#19252) 2021-12-14 18:16:49 +01:00
tjsonexternproc.nim updated tests to be executed 2018-11-23 11:58:28 +01:00
tjsonmacro.nim Moved json enum index test to the proper file (#16826) 2021-01-25 18:35:08 -08:00
tjsonmacro_reject.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
tjsontestsuite.nim updated tests to be executed 2018-11-23 11:58:28 +01:00
tjsonutils.nim make -d:nimFpRoundtrips work consistently in vm vs rt, fix #18400, etc (#18531) 2021-07-20 22:13:52 +02:00
tlists.nim Fix remove on last node of singly-linked list [backport:1.6] (#19353) 2022-01-10 10:27:59 +01:00
tlocks.nim ref #14873 (#17644) 2021-04-06 16:21:58 +02:00
tlwip.nim Add Zephyr Support (#19003) 2021-10-24 11:51:57 +02:00
tmacros.nim Extract runnables that specify doccmd (#19275) [backport:1.6] 2021-12-20 17:29:03 +01:00
tmarshal.nim std/options: $some(3) is now "some(3)", etc. (#17147) 2021-02-24 22:17:16 +00:00
tmath.nim Add ceilDiv to math (#18596) 2021-08-19 11:35:40 +02:00
tmd5.nim Use openarray of bytes in md5 (#19307) 2022-01-15 13:19:05 +01:00
tmemfiles1.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
tmemfiles2.nim Merge branch 'araq-devel' of github.com:nim-lang/Nim into araq-devel 2018-07-06 17:27:02 +02:00
tmemlines.nim activated more tests, allow input in test spec 2018-11-23 11:58:28 +01:00
tmemlinesBuf.nim move travis, appveyor, ci.yml.disabled to unmaintained/ (#17828) 2021-04-24 07:54:31 +02:00
tmemmapstreams.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
tmemory.nim deprecate unsafeAddr; extend addr (#19373) 2022-01-16 11:08:38 +01:00
tmemslices.nim activated more tests, allow input in test spec 2018-11-23 11:58:28 +01:00
tmersenne.nim deprecate std/mersenne (#18395) 2021-07-05 10:12:58 -07:00
tmget.nim fix deprecations and other warnings (#13748) 2020-03-25 19:15:34 +01:00
tmimetypes.nim change mimedb stroe stringtable to orderedtable (#18065) 2021-06-07 13:57:42 +02:00
tmitems.nim fix #14056 (#16071) 2020-11-23 19:53:57 +01:00
tmonotimes.nim [JS + docs] improve std/monotimes module (#17103) 2021-02-22 11:09:25 +01:00
tnativesockets.nim fix #16256: nimout: <empty> should give error (vacuously true); improve a few tests (#18089) 2021-05-31 13:39:19 +02:00
tnet.nim Only allow IPv4 literals in strict form (#18656) 2021-08-08 19:11:07 +01:00
tnet_ll.nim fix #19244 - solves the problem of the InAddr object constructor in Windows. (#19259) 2021-12-17 09:01:33 +01:00
tnetbind.nim make tests/stdlib tests joinable (#14626) 2020-06-15 13:27:33 +02:00
tnetconnect.nim fix flaky tnetconnect which sometimes failed with: No route to host [OSError] (#17526) 2021-03-27 10:22:42 +01:00
tnetdial.nim move travis, appveyor, ci.yml.disabled to unmaintained/ (#17828) 2021-04-24 07:54:31 +02:00
tnre.nim remove some noises in tests (#16448) 2020-12-27 14:45:57 +01:00
toids.nim oids: switch from PRNG to random module (#16203) 2021-01-07 09:38:31 +01:00
topenssl.nim deprecate cuchar, don't redefine it (#18505) 2021-07-16 15:50:02 +02:00
toptions.nim std/options: $some(3) is now "some(3)", etc. (#17147) 2021-02-24 22:17:16 +00:00
tos.nim fix #18670 quoteShellCommand, quoteShell, quoteShellWindows on windows (#18671) 2021-08-12 16:50:08 +02:00
tos_unc.nim fixes #10952, UNC paths (#11260) 2019-05-16 21:06:04 +02:00
tosenv.nim envPairs works in vm, nims (#18615) 2021-09-29 09:32:39 +02:00
toserrors.nim Added std/oserrors for OS error reporting (#19390) 2022-01-17 13:06:31 +01:00
tosproc.nim typo: nonexistant => nonexistent (#17918) 2021-05-02 00:26:41 +02:00
tosprocterminate.nim use lowercase --define switches (#17283) 2021-03-07 12:08:41 +01:00
tpackedsets.nim Make IntSet a generic ordinal set OrdSet[A] (#15564) 2020-11-13 14:12:51 +01:00
tparsecfg.nim Add a getter for all defined Sections in parsecfg (#15450) 2021-03-28 09:57:40 -07:00
tparsecsv.nim move tests to testament (#16101) 2020-11-24 19:06:41 +01:00
tparseipv6.nim style usages part one (openarray => openArray) (#19321) 2022-01-04 13:29:50 +01:00
tparsesql.nim fix parsesql.treeRepr when nil is in input (#18974) 2021-10-17 05:38:07 +02:00
tparseuints.nim remove some noises in tests (#16448) 2020-12-27 14:45:57 +01:00
tparseutils.nim fix #18702(fix parseutils.parseFloat) (#18703) [backport:1.0] 2021-08-16 15:14:35 +02:00
tparsopt.nim use doAssert in tests (#16486) 2020-12-28 14:13:21 +01:00
tpegs.nim Add support for strictEffects to std/pegs (#18949) 2021-10-04 21:27:13 +02:00
tposix.nim activated more tests, allow input in test spec 2018-11-23 11:58:28 +01:00
tprelude.nim move prelude so that include std/prelude also works (#17110) 2021-02-20 18:08:13 +01:00
tpunycode.nim Fix punycode.decode function (#19136) 2021-11-12 22:51:58 -05:00
tquit.nim addQuitProc => addExitProc (#16765) 2021-01-22 19:51:11 +01:00
trandom.nim Fix initrand to avoid random number sequences overlapping (#18744) 2021-09-02 14:12:14 +02:00
trationals.nim close #16921 (#16951) 2021-02-06 17:33:11 +01:00
tre.nim fix bug #14468 zero-width split (#19248) 2021-12-13 07:29:22 +01:00
tregex.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
tregistry.nim fix #14010(fix std/registry + arc) (#17551) 2021-03-29 10:50:58 +02:00
trepr.nim style usages part one (openarray => openArray) (#19321) 2022-01-04 13:29:50 +01:00
trlocks.nim add tests for #15584 (#15619) 2020-10-18 12:57:13 -04:00
tropes.nim Improve the ropes module (#17145) 2021-02-22 19:58:37 +01:00
trst.nim implement RST & Markdown quote blocks (#19147) 2021-11-23 13:02:03 +01:00
trstgen.nim fixes a possible 'javascript:' protocol exploit [backport:1.0] (#19134) 2021-12-10 09:24:20 +01:00
tsequtils.nim sequtils: fix errors from strictFuncs use (#18998) 2021-10-16 11:25:05 +02:00
tsetutils.nim add setutils.[]= (#17272) 2021-03-08 10:39:39 +01:00
tsha1.nim Add changes required by Nimble lock file support (#12104) 2021-07-15 22:13:01 +02:00
tsharedlist.nim fixes #17696 (#18276) 2021-06-16 11:31:20 +02:00
tsharedtable.nim use doAssert in tests (#16486) 2020-12-28 14:13:21 +01:00
tsince.nim fix: var a{.foo.} = expr inside templates (refs #15920) (except when foo is overloaded) (#13869) 2021-08-11 12:17:17 +02:00
tsocketstreams.nim Implements streams for sockets (#15729) 2021-01-07 16:09:57 +01:00
tsortcall.nim activated more tests, allow input in test spec 2018-11-23 11:58:28 +01:00
tsqlitebindatas.nim deprecate unsafeAddr; extend addr (#19373) 2022-01-16 11:08:38 +01:00
tsqlparser.nim megatest can be executed 2018-12-11 21:23:21 +01:00
tssl.nim workaround #15713 disable freebsd tssl.nim (#15718) 2020-10-26 03:10:38 +02:00
tssl.nims Fix #15493 - disable TLS emulation for NetBSD (#15494) 2020-10-05 12:00:06 +02:00
tstackframes.nim trunner was not actually being tested in non-CTFFI mode; minor testament cleanups (#14377) 2020-05-19 09:41:31 +02:00
tstats.nim Fix #18718 (#18731) 2021-08-23 00:13:39 +02:00
tstdlib_issues.nim Error -> Defect for defects (#13908) 2020-04-28 19:56:01 +02:00
tstdlib_various.nim strict effects (#18777) 2021-09-02 12:10:14 +02:00
tstrbasics.nim re-enable disabled tests after #17173 (#17228) 2021-03-02 12:53:05 +01:00
tstreams.nim active windows tests and use doAssert (#16395) 2020-12-18 16:45:51 +01:00
tstrformat.nim followup strformat PR. backslash escapes, tests, docs (#17700) 2021-04-12 07:32:37 +02:00
tstring.nim cleanup tests/stdlib/tstring.nim (#17158) 2021-02-24 13:47:36 +01:00
tstrmiscs.nim move tests to testament (#16101) 2020-11-24 19:06:41 +01:00
tstrscans.nim tests: Fix warnings in tstrscans (#19082) 2021-11-02 09:06:46 +01:00
tstrset.nim the parser finally parses 'echo {1,2}' as it should 2017-09-30 21:35:30 +02:00
tstrtabs.nim use doAssert in tests (#16486) 2020-12-28 14:13:21 +01:00
tstrtabs.nims [FIX] strtabs interpolation in nimscript (#15172) 2020-08-09 14:12:53 +02:00
tstrtabs2.nim close #18489 (#18524) 2021-07-19 12:43:31 +02:00
tstrutils.nim Fix nimIdentNormalize, fixes #19067 (#19068) 2021-10-29 11:39:41 +02:00
tstrutils2.nim fix #14545 windows CI docs (#14590) 2020-06-10 14:10:57 +02:00
tsugar.nim fix #16967 [backport:1.2] (#16976) 2021-02-09 13:04:36 +01:00
tsums.nim use doAssert in tests (#16486) 2020-12-28 14:13:21 +01:00
tsysrand.nim Revert "make system random work in VM" (#17378) 2021-03-15 10:21:25 +01:00
tsystem.nim fixed system.delete (#18507) 2021-07-18 15:16:26 +02:00
ttables.nim use doAssert in tests (#16486) 2020-12-28 14:13:21 +01:00
ttasks.nim add std/tasks (#17447) 2021-04-09 11:51:51 +02:00
ttempfiles.nim Revert #17398 and #17402 (#18480) 2021-07-18 11:04:19 +02:00
tterminal.nim terminal: fix fgColor/bgColor commands [backport] (#15554) 2020-10-13 17:39:32 +01:00
tterminal_12759.nim Fix #12759 (#14967) 2020-07-12 03:31:03 -04:00
tterminal_15874.nim follow #15874(add testcase for #15874) (#15893) 2020-11-10 09:23:58 +08:00
ttestutils.nim testament :show duration also for failed tests; improve tshould_not_work; mitigate #17946 tchannels timeouts (#17947) 2021-05-08 17:13:47 +02:00
tthreadpool.nim add testcase for #12005 (#17278) 2021-03-08 14:37:52 +01:00
ttimes.nim Add Week-Of-Year Implementation to Times Module (#17223) 2022-01-03 09:11:23 +01:00
ttypeinfo.nim use doAssert in tests (#16486) 2020-12-28 14:13:21 +01:00
ttypetraits.nim Add hasClosure to std/typetraits (#17501) 2021-03-29 14:22:29 +02:00
tunicode.nim fixes #17768 [backport:1.4] (#18317) 2021-06-21 12:50:47 +02:00
tunidecode.nim tunidecode minor improvement (#16157) 2020-11-27 12:41:22 +08:00
tunittest.nim remove deprecated stuff in unittest module (#17156) 2021-02-24 21:02:33 +01:00
tunittest_error.nim fix #14475; unittest.require now works with nim c; require and check now works with -d:nodejs (#14676) 2020-07-14 13:14:32 +02:00
tunittestexceptiontype.nim Added: type name output when exception raised from unittest (#7869) 2018-05-28 05:24:04 +03:00
tunittestpass.nim fix #16474 unittest.check type1 is type2 gives CT error (#16476) 2020-12-27 09:16:53 +01:00
tunittesttemplate.nim fix several bugs with repr (#13386) 2020-02-11 21:33:06 +01:00
turi.nim Revert "Fix parseUri to sanitize urls containing ASCII newline or tab (#17967)" (#17984) 2021-05-09 23:33:31 +02:00
tuserlocks.nim replace defer with try ... finally (#17753) 2021-04-17 11:48:22 +02:00
tvarargs.nim close #15563 add testcase (#17168) 2021-02-24 13:44:10 +01:00
tvarints.nim fix #16256: nimout: <empty> should give error (vacuously true); improve a few tests (#18089) 2021-05-31 13:39:19 +02:00
tvmutils.nim enable VM tracing in user code via {.define(nimVmTrace).} (#18244) 2021-06-24 11:55:31 +02:00
twchartoutf8.nim make more tests green 2018-04-30 11:16:56 +02:00
twith.nim move rest of tests to testament (#16140) 2020-11-27 20:47:49 +01:00
twordwrap.nim move rest of tests to testament (#16140) 2020-11-27 20:47:49 +01:00
twrapnils.nim Rename test variable due to unfortunate connotations (#18453) 2021-07-08 10:21:30 +08:00
txmltree.nim use doAssert in tests (#16486) 2020-12-28 14:13:21 +01:00
tyield.nim fix #9778 (pairs iterator calling a helper proc with tuple return type will cut the iterator yield into half) (#18767) 2021-09-02 07:41:14 +02:00
uselocks.nim Revert "fix #14873 properly by skipping abi field in importc type (#17944)" (#17992) 2021-05-15 06:50:39 +02:00