summary refs log tree commit diff stats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* change mimedb stroe stringtable to orderedtable (#18065)Bung2021-06-071-0/+1
| | | | | | | * change mimedb stroe stringtable to orderedtable * Update lib/pure/mimetypes.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* macros.treeRepr + friends: collapse SymChoice (#18072)Timothee Cour2021-06-052-28/+114
| | | | | | | * macros.treeRepr + friends: collapse SymChoice * make repr+friends work with invalid symchoice nodes * address comment
* fixes #18058 (#18162)Andreas Rumpf2021-06-032-4/+4
|
* added float32 schubfach algorithm; wip (#18155)Andreas Rumpf2021-06-031-0/+5
| | | | | * added float32 schubfach algorithm; wip * fixes #18418
* fix #16993, #18054, #17835 runnableExamples now works with templates and ↵Timothee Cour2021-06-023-3/+67
| | | | nested templates (#18082)
* add string-string tests for find and rfind (#18137)n5m2021-06-021-3/+98
| | | | | | | * add string-string tests for find and rfind * remove duplicate test cases * remove more redundant test cases
* fixes #18059 (#18140)Andreas Rumpf2021-06-021-0/+35
| | | | * fixes #18059
* use dragonbox algorithm; alternative to #18008 (#18139)Andreas Rumpf2021-06-011-4/+4
| | | | | * use dragonbox algorithm; alternative to #18008 * removed unsafe code
* docs: Latex generation improvements (#18141)Andrey Makarov2021-06-011-2/+2
| | | | | | | * docs: improve Latex generation * make it work on Windows + fix ] escaping * minor fixes with escapes and style
* close #18129 Add setCurrentException for JS backend (#18145)flywind2021-06-011-0/+8
| | | | | | | | | | | * [std/re] make interface consistent * tiny * revert * close #18129 add setCurrentException * changelog entry
* Fixes #5034 illformed AST from getImpl with proc returning value (#17976)Dylan Modesitt2021-05-311-0/+31
| | | | | * Fixes 5034 * address comments
* jsonutils.toJson now serializes JsonNode as is by default (#18097)Timothee Cour2021-05-311-0/+22
| | | | | * jsonutils.toJson now serializes JsonNode as is (without deep copy nor treating it as a regular ref object) * JsonNodeMode
* add `os.getCacheDir` (#18126)Timothee Cour2021-05-311-0/+3
| | | | | | | * add `os.getCacheDir` * fixup * address comments
* fix #16256: nimout: <empty> should give error (vacuously true); improve a ↵Timothee Cour2021-05-316-106/+68
| | | | | | | | | | | | | | | | | | | few tests (#18089) * fix #16256: nimout: <empty> should give error (vacuously true); improve some tests * renamed: tests/stdlib/t9710.nim -> tests/misc/t9710.nim * improve tests * fix non-DRY tests * improve $nim_prs_D/tests/stdlib/t9091.nim * renamed: tests/stdlib/t9091.nim -> tests/misc/t9091.nim * fixup * address comment: doAssert => result.parseErrors
* fix #18113 (#18124)Saem Ghani2021-05-312-0/+15
|
* improve fast returns of find and rfind (#18127)n5m2021-05-311-0/+28
|
* document macros.unpackVarargs (#18106)Timothee Cour2021-05-312-0/+51
| | | | | | | * deprecate macros.unpackVarargs * un-deprecate unpackVarargs and add docs+runnableExamples * update examples + tests with varargs[typed]
* hashes for refs should be an opt-in feature (#18098)Miran2021-05-302-0/+2
|
* Fixes #17849 (#18055) [backport:1.2]Yuriy Glukhov2021-05-301-1/+15
| | | | | | * Fixes #17849 * Update compiler/closureiters.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Disable tasynchttpserver_transferencoding on FreeBSD (#18122)vabresto2021-05-291-0/+1
|
* fix #17456 flaky test tasynchttpserver_transferencoding (#18052)vabresto2021-05-281-23/+32
|
* testament: remove deadcode related to realtimeGC, testC, callCCompiler (#18087)Timothee Cour2021-05-264-82/+10
|
* change `--hint[X] => --hint:X` in nim repo (avoids shell quoting issues) ↵Timothee Cour2021-05-265-5/+5
| | | | (#18085)
* fix #18077 testament now parses `cmd` properly (#18086)Timothee Cour2021-05-261-0/+21
|
* close #3482 no more cgen error with typed templates (#18094)Timothee Cour2021-05-261-0/+15
|
* remove some custom logic in testament around flags, testExec (#18090)Timothee Cour2021-05-262-9/+30
| | | | | | | * remove some custom logic in testament around flags, testExec * remove testExec, custom logic around flags from testament * fixup
* close #18009 parseJson JInt vs JFloat; preserve -0.0 as JFloat to ↵Timothee Cour2021-05-231-1/+16
| | | | distinguish from 0.0 (#18067)
* close #5540 generic object with generic field evaluated too early (#18062)Timothee Cour2021-05-231-0/+45
|
* docs: make inline markup more compatible with Markdown (#18053)Andrey Makarov2021-05-212-10/+67
| | | fixes https://github.com/timotheecour/Nim/issues/739
* config system: special case -d:release and -d:danger [backport:1.4] (#18051)Andreas Rumpf2021-05-202-2/+4
|
* asyncdispatch+stackTraceOverride: fix premature collection (#18039) ↵Ștefan Talpalaru2021-05-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | [backport:1.2] Copying StackTraceEntry instances when nimStackTraceOverride is defined breaks the link between a cstring field that's supposed to point at another string field in the same object. Sometimes, the original object is garbage collected, that memory region reused for storing other strings, so when the StackTraceEntry copy tries to use its cstring pointer to construct a traceback message, it accesses unrelated strings. This only happens for async tracebacks and this patch prevents that by making sure we only use the string fields when nimStackTraceOverride is defined. Async tracebacks also beautified slightly by getting rid of an extra line that was supposed to be commented out, along with the corresponding debugging output. There's also a micro-optimisation to avoid concatenating two strings just to get their combined length.
* ARC: fixes memory leaks with newSeq used in a loop [backport:1.4] (#18040)Andreas Rumpf2021-05-181-0/+13
| | | | * ARC: fixes memory leaks with newSeq used in a loop [backport:1.4] * Update tests/arc/tnewseq_legacy.nim
* jsonutils: add customization for toJson via `ToJsonOptions`; generalize ↵Timothee Cour2021-05-181-0/+13
| | | | | | | | | | | | | | | | | | | symbolName; add symbolRank (#18029) * jsonutils: add customization for toJson via `ToJsonOptions` * add enumutils.symbolRank * lookup table implementation for HoleyEnum * cleanup * changelog * fixup * Update lib/std/jsonutils.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* follow-up #17930 - inline syntax highlighting (#18013)Andrey Makarov2021-05-161-0/+21
| | | | | * follow-up #17930 - inline syntax highlighting * make closure->nimcall
* fix #18007: std/json now serializes nan,inf,-inf as strings instead of ↵Timothee Cour2021-05-162-1/+43
| | | | | | | | | | | | | | | | | invalid json (#18026) * fix #18007: std/json now serializes nan,inf,-inf as raw strings instead of invalid json * fix roundtrip * fix tests * fix changelog * simplify * add runnableExamples * fix typo [skip ci]
* more informative error msg for undeclared field (`A(badfield: 1)` and ↵Timothee Cour2021-05-161-0/+40
| | | | `a.badfield = expr`) (#17777)
* Rework DFA traversal (#18016)Clyybber2021-05-161-0/+34
| | | | | | | | | * enable using dbg: without a context * Optimally joining first write/last read analysis * Add test for #18002 * potLastReads -> potentialLastReads
* RST opt.list to have priority over def.list (#17845)Andrey Makarov2021-05-151-0/+26
|
* Revert "fix #14873 properly by skipping `abi` field in importc type ↵Andreas Rumpf2021-05-151-17/+1
| | | | | (#17944)" (#17992) This reverts commit 98c29c01eb91a0c6ce7da09380a272eebe6bca6f.
* refs #18011 disable some newly failing tests on cpp windows; refs #17946 ↵Timothee Cour2021-05-144-4/+10
| | | | increase timeout for tchannels (#18012)
* jsonutils: handle holey enum as regular enum, via ord (#17995)Timothee Cour2021-05-111-3/+3
|
* jsonutils: support set (#17994)Timothee Cour2021-05-111-0/+6
|
* improve std/tempfiles (#17920)Timothee Cour2021-05-111-10/+42
| | | | | | | | * improve std/tempfiles * fixup * fix windows * improve test * improve runnableExamples and tests * address comment
* fix #17467 1st call to rand is now non-skewed; allow seed == 0 (#17468)Timothee Cour2021-05-111-4/+27
| | | | | | | | | | | | | | | * fix #17467 1st call to rand is now non-skewed; allow passing 0 as seed * changelog + fallback * document behavior for seed == 0 * address comments * _ * fix tests, disable kdtree * re-enable kdtree with -d:nimLegacyRandomInitRand
* make testament `isSuccess` more robust and allow tests with `--hints:off` to ↵Timothee Cour2021-05-112-4/+5
| | | | | | | | | succeed (#17968) * fix testament isSuccess * show givenSpec in addResult * simplify tstatictypes.nim
* Revert "Fix parseUri to sanitize urls containing ASCII newline or tab ↵Andreas Rumpf2021-05-091-12/+0
| | | | | (#17967)" (#17984) This reverts commit f4dd95f3bee14b69caec63c3be984c4a75f43c8a.
* close #9039: compiler does not hang anymore in 1 case involving static ↵Timothee Cour2021-05-091-0/+24
| | | | params and arrays (#17983)
* Fix parseUri to sanitize urls containing ASCII newline or tab (#17967)Beshr Kayali2021-05-091-0/+12
| | | | | | | | | | | | | | | | | | | * Fix parseUri to sanitize urls containing ASCII newline or tab * Fix ups based on review Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Additional fix ups based on review - Avoid unnecessary `removeUnsafeBytesFromUri` call if parseUri is strict - Move some parseUri tests to uri module test file Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com> * Update changelog Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
* fix #17960: honor `matrix` also for `action: compile, action: reject` (#17980)Timothee Cour2021-05-091-2/+2
| | | | * fix #17960: honor `matrix` for all action
* testament :show duration also for failed tests; improve `tshould_not_work`; ↵Timothee Cour2021-05-084-20/+52
| | | | | | | | | | | mitigate #17946 tchannels timeouts (#17947) * refs #17946; refactor testament test summary, show test duration for failures; increase timeout tchannels * revert workarounds from https://github.com/nim-lang/Nim/pull/16698 and add allowPrefixMatch optional param to greedyOrderedSubsetLines * add test * workaround for yet another testament bug