summary refs log tree commit diff stats
path: root/tests/misc
Commit message (Collapse)AuthorAgeFilesLines
* Make test independent of repo location (#16571)Clyybber2021-01-031-3/+1
| | | | | * Make test independent of repo location * Fix differently
* Revert "Make config processing order test more robust" (#16561)flywind2021-01-031-1/+1
| | | This reverts commit cf714c129f7dd598863d1cc588e685df2438c658.
* Make config processing order test more robustClyybber2021-01-021-1/+1
|
* fix #16526 run config.nims before foo.nim.cfg (#16557)Timothee Cour2021-01-021-0/+19
| | | | | * fix #16526 run config.nims before foo.nim.cfg * add test
* follow #16505 move and active tests (#16508)flywind2020-12-301-30/+0
| | | | | * fix printing negative zero in JS backend * move tests
* fix `hintProcessing` dots interference with `static:echo` and `hintCC`; add ↵Timothee Cour2020-12-301-8/+56
| | | | | | | | | | tests for `nim secret`, add tests for hintProcessing, misc other bug fixes (#16495) * fix dots interfering with static:echo * add tests * fix hintProcessing dots for hintCC * improve trunner tests * fix bug: readLineFromStdin now writes prompt to stdout, consistent with linenoise and rdstdin * disable a failing test for windows
* fix printing negative zero in JS backend (#16505)flywind2020-12-291-0/+30
|
* use doAssert in tests (#16486)flywind2020-12-281-114/+114
|
* fix nim js cmp fails at CT (#16473)flywind2020-12-271-0/+20
|
* fixes #15939, fixes #15464, fixes #16169, fixes #16226 VM now supports ↵Timothee Cour2020-12-031-0/+66
| | | | | | | | | `addr(mystring[ind])` (index + index assignment) (#15987) * fix #15939, fix #15464 VM now supports `addr(mystring[ind])` (index + index assignment), var char return etc * cleanups * cstring tests * add test for bug #15464 * improve test coverage
* add test for --eval; fix a minor bug (#16224)Timothee Cour2020-12-011-0/+6
|
* make megatest consistent with unjoined tests wrt newlines, honor newlines in ↵Timothee Cour2020-11-281-0/+4
| | | | | | | output spec (#16151) * fix megatest newlines * still allow missing trailing newline for now but in a more strict way than before
* fix #14339, #13511, #14420: fixes limited VM support for addr (#16002)Timothee Cour2020-11-251-0/+80
| | | | | | | | | | | * fix #14339: fixes limited VM support for addr * strengthen test * reference bug #16003 * also fixes #13511 * also fixes #14420
* fixes #16069; [backport:1.2] [backport:1.4] (#16115)Andreas Rumpf2020-11-241-11/+0
| | | | | * fixes #16069; refs https://github.com/nim-lang/RFCs/issues/257 [backport:1.2] [backport:1.4] * make tests green again
* followup #15970 strenghten regression tests (#16075)Timothee Cour2020-11-201-3/+2
| | | | | * followup #15970 strenghten regression tests * _
* fix #16025 repr now consistent: does not insert trailing newline (#16034)Timothee Cour2020-11-191-2/+1
|
* Disallow nil dereference at compile time (#16032)cooldome2020-11-181-1/+2
| | | | | | | | | | | | | * bring back the semfold of nil * remove space * fix test * proc type can't be dereferenced * disallow nil dereference at compile time * changelog
* Semfold for nil cast (#16030)cooldome2020-11-181-3/+4
| | | | | | | | | * bring back the semfold of nil * remove space * fix test * proc type can't be dereferenced
* combine PR#16009 and PR#16012 (#16024)flywind2020-11-181-0/+44
| | | | | | | | * fix #15623 * add testcase for #15623 * add testcase * combine #16009 * support casting nil to NilableTypes in VM
* strengthen taddr.nim: add test case for #14578; reference other issues; test ↵Timothee Cour2020-11-131-0/+137
| | | | cpp (#15960)
* Fix #8404 JS backend doesn't handle float->int type conversion (#15950) ↵Bung2020-11-131-0/+33
| | | | | | | | | | | [backport] * Fix #8404 JS backend doesn't handle float->int type conversion * handle conv to uint as cast, discard other cases * limit to int32, times use int64 * toInt including tyInt64 break times timezones lib, ignore for now * also affect to vm * move to tests/misc/t8404.nim
* Correct all eggs (#15906)Miran2020-11-101-1/+1
| | | | * "eg" is a misspelled "egg", "e.g." is "exempli gratia" * Also, "ie" is "i.e.".
* Fix #12636 (#15850)cooldome2020-11-051-1/+13
| | | | | | | | | * close #11142 * fix #12636 * undo unwanted changes * fix illegal recursion case
* [closes #12682]add testcase for #12682 (#15796)flywind2020-10-311-0/+11
| | | | | * add testcase for #12682 * fix
* honor --declaredLocs in more places, including type mismatch errors; also ↵Timothee Cour2020-10-271-1/+1
| | | | | | | show `kind` with --declaredLocs (#15673) * honor --declaredLocs in more places, including type mismatch errors * fix tests * show declaration location also when type mismatch names clash
* fix #15516 (#15518)cooldome2020-10-081-1/+17
|
* fixes #15210 [backport:1.2] (#15237)Andreas Rumpf2020-08-311-0/+11
| | | | | * fixes #15210 [backport:1.2] * use patched version of bigints library
* fixes #14616 [backport:1.2] (#15109)Andreas Rumpf2020-07-291-0/+10
|
* fix #13086 (#14987)flywind2020-07-151-0/+33
| | | | | | | | | | | | | | | | | * fix #6608 * minor * fix * clean tests * make testamnet happy * again * minor * fix #13086
* Reenable a few testsClyybber2020-07-141-1/+1
|
* Limit number of error messages from gcc/clang backend (#14852)Tomohiro2020-07-071-0/+5
| | | | | | | * Limit number of error messages from backend * Avoid duplication of -fmax-errors * make tests/misc/trunner.nim success
* {.deprecated: [existsFile: fileExists].} (#14735)Timothee Cour2020-07-021-1/+1
| | | | | | | | | * {.deprecated: [existsFile: fileExists].} * s/existsFile/fileExists/ except under deps * workaround pending #14819 * fix test
* allow packed union (#14868)Clyybber2020-07-011-0/+10
| | | Co-authored-by: Arne Döring <arne.doering@gmx.net>
* Add test-cases to some fixed issues to close them (#14795)Danil Yarantsev2020-06-241-0/+4
|
* Reject casts to builtin typeclasses (#14788)Danil Yarantsev2020-06-241-1/+8
| | | | | * Closes #14231, closes #14452 * Merge test to tcast.nim
* misc testament cleanups (#14764)Timothee Cour2020-06-231-10/+4
| | | | | * misc testament cleanups extracted cleanups from #14530 * make sure all CI failures can be searched with `FAIL: ` including megatest failures
* sizeof for empty objects/tuples should be 1; fixes #14690 (#14751)Andreas Rumpf2020-06-211-1/+9
|
* walkDirRecFilter, update doc CI filter, compiler/index.nim for docs + ↵Timothee Cour2020-06-011-5/+2
| | | | | | | | | | | various other fixes (#14501) * update doc CI filter to include the files mostly likely to require doc rebuild * remove code duplication in ./config/nimdoc.cfg; show link to compiler docs, various fixes * walkDirRecFilter, factor nativeToUnixPath workaround * glob for getRst2html * docslocal: 40s to build all docs * revert code dedup in github actions which did not work alas... * fixups
* docgen: mangling using _. instead of @@ to avoid issue (#14454)Timothee Cour2020-05-261-19/+19
|
* fix #6583, fix #14376, index+search now generated for all projects, many bug ↵Timothee Cour2020-05-251-12/+89
| | | | | | | | | fixes with nim doc (#14324) * refs #6583 fix nim doc output * changelog * change default for outDir when unspecified * cleanups * --project implies --index
* trunner was not actually being tested in non-CTFFI mode; minor testament ↵Timothee Cour2020-05-194-3/+146
| | | | | | | | | | cleanups (#14377) * use check * trunner now works with cpp * cleanup: move compiler/unittest_light => stdtest/unittest_light * fix tests/readme.md * remove deadcode references to rodfiles * fix for windows
* fix some issues with --backend (#14363)Timothee Cour2020-05-161-0/+31
| | | | | * fix some issues with --backend * fix https://github.com/timotheecour/Nim/issues/175; improve upon #14306
* fix #14314 do not analyze importc procs for effects (#14319)Timothee Cour2020-05-121-0/+26
|
* fixes #13698 [backport:1.2] (#14175)Andreas Rumpf2020-04-301-0/+5
|
* Error -> Defect for defects (#13908)Jacek Sieka2020-04-283-21/+21
| | | | | | | | | | | | | | * Error -> Defect for defects The distinction between Error and Defect is subjective, context-dependent and somewhat arbitrary, so when looking at an exception, it's hard to guess what it is - this happens often when looking at a `raises` list _without_ opening the corresponding definition and digging through layers of inheritance. With the help of a little consistency in naming, it's at least possible to start disentangling the two error types and the standard lib can set a good example here.
* CT sizeof(+friends) for {.importc, completeStruct.} types, enable ABI static ↵Timothee Cour2020-04-232-1/+132
| | | | | | | | | | | checks (#13926) * -d:checkabi obsolete (ABI check now enforced); add `addTypeHeader` helper * cleanups * import sizeof at CT for {.completeType.} * address comments; revert default enabling of -d:checkAbi for now * mimportc_size_check.nim => msizeof5.nim; merge mabi_check.nim into msizeof5.nim; refactor * all pragmas in errmsgs should be written: '.importc' (un-ambiguous and less verbose than {.importc.})
* Fix semfold handling of {.str/int/bool-define.} (#13964)Oscar Nihlgård2020-04-131-0/+12
|
* faster CIs (#13803)Miran2020-03-301-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ttables: smaller table, 5x speedup * thavlak: less iterations, less loops; 30% speedup * tasyncclosestall: shorter timeout; 35% speedup * gcleak4: less iterations, 2x speedup * ttimes: remove deprecated stuff * tdangerisrelease: remove cpp backend, 3x speedup * tfrexp1: smaller range, 2x speedup * trtree: fix warnings, less iterations, 6x speedup * tasyncawait_cyclebreaker: smaller swarm size; 2x speedup * trealloc: smaller number of iterations; 10x speedup * towned_binary_tree: less iterations, 4x speedup * tclosure: remove unused code, less iterations; 2x speedup * twaitany: less durations; 1.4x speedup * tasync_misc: less iterations, 2x speedup * t8535: smaller sleep, 1.5x speedup * tmanyjoin: smaller sleep, 2x speedup * t12221: shorter sleeps, removed two slower tests; 1.6x speedup * tfuturestream: smaller sleep; 1.5x speedup * growobjcrash: less iterations; 2x speedup * ttryrecv: smaller sleep; 1.5x speedup * treusetvar: less threads; 2x speedup * delete tthreadanalysis2, basically a duplicate of tthreadanalysis * t7758: less iterations, 1.5x speedup * tasyncawait: smaller swarm, less messages; 1.5x speedup * tjsandnativeasync: smaller sleep, 1.5x speedup * tpendingcheck: smaller sleep, 1.5x speedup * remove rodfiles test category * move tseq from its own category to 'collections' category * remove unneeded tests and helpers from 'assert' category * stdlib: merge tbitops2 into tbitops * remove 'trepr2' from 'stdlib' cat * merge 'tstreams' into one file * remove 'tinefficient_const_table' from 'ccbugs' cat * merge 'tcollections_to_string' into 'tcollections' * tblocking_channel: smaller sleep, small speedup * tconvexhull: less iterartions; 1.2x speedup * merge 'tdeepcopy2' into 'tdeepcopy' * merge 'tdisjoint_slice2' into 'tdisjoint_slice1' * tmissing_deepcopy: smaller sequence * tsendtwice: smaller arrays; 5x speedup * remove 'tindexerrorformatbounds' * disable multimethod tests * remove 'gc:none' and 'refc' without 'd:useRealtimeGC' from gc tests * koch.nim: bootstrap just with '-d:release', no need for 'csource' * add github workflow for documentation * testament: no need for 8 sub-second decimals
* fixes #13698 (#13706)Andreas Rumpf2020-03-201-1/+6
|
* fixes #13671 [backport] (#13678)Andreas Rumpf2020-03-181-0/+5
|