summary refs log tree commit diff stats
path: root/tests/converter
Commit message (Collapse)AuthorAgeFilesLines
* Use `analyseIfAddressTaken` logic for checking if address is taken in ↵Jake Leahy2023-03-201-0/+10
| | | | | | | | | | | | | | | | | | | converter (#21533) * Add a test case There are way more test cases (See all branches of analyseIfAddressTaken but this covers at least a second branch * Port analyseIfAddressTaken from semexprs to sigmatch This was done since we cannot import sem or semexprs (circular import) but we need the rest of the logic. In needs to be done here since the converter isn't semmed afterwards and so we can't just leave the process til later use the version from semexprs * Less hacky solution which has the checking be done in analyseIfAddressTakenInCall This was done instead of the recommendation on removing it since sfAddrTaken is used in places other than the backend * Remove weird whitespace * Still check nkHiddenAddr if we are checking a converter
* follow up #20109; remove `shallow` seqs/strings for ORC (#20502)ringabout2022-10-062-4/+4
| | | | | | | * remove `shallow` seqs/strings for ORC * add a changelog item * change url of DelaunayNim
* fix #18986; Import/except doesn't work on devel [backport: 1.6] (#19687)flywind2022-04-062-0/+13
| | | | | * fix #18986; Import/except doesn't work on devel [backport: 1.6] * add testcase
* style usages part one (openarray => openArray) (#19321)flywind2022-01-041-1/+1
| | | | | * style usages (openArray) * revert doc changes
* fixes a converter handling regression that caused private converters to leak ↵Andreas Rumpf2021-12-092-0/+13
| | | | into client modules; fixes #19213; [backport:1.6] (#19229)
* Fixed generic distinct conversions for 'var' (#18837)Jason Beetham2021-10-261-0/+6
| | | | | | | | | | | | | | | * SameTypeAux now properly traverses generic distincts * Smarter traversal of distincts * Removed redundant check * Fixed nkConv for jsgen * Added test for non distinct nkConv * using skiptypes for distinct now * Fixed genaddr for nkconv
* semLambda removed, semProcAux reworked (#17379)Saem Ghani2021-03-171-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * simplified proc-like name ident to symbol code * wip - reworking generic param sem * wip - closer to removing nkEmpty generic params * it's hacky but tests pass * slowly tweaking semProcAux to take on semLambda * fix pragma superset check proto vs current * Set the symbol owner earlier * partial progress reworking proto found bug where default values between forward and impl lead to overload resolution issues. * simplified pragma handling and callConv checks Co-authored-by: Clyybber <Clyybber@users.noreply.github.com> * partially working * cgexprs issue * It works! * comment clean-up * clean-up asserts, comments, and other bits * add isGenericParams, inline isGeneric queries * seeing if this is sufficiently consistent * can use this approach or continue it in a further PR * commentary about nullary generics and clean-ups * fixed a mistake in PNode isGenericRoutine * Some small cleanups * Small cleanup * for func lambdas ensure we use lambda pragmas * add some basic compileTime func tests * [ci skip] remove comments Co-authored-by: Clyybber <Clyybber@users.noreply.github.com> Co-authored-by: Clyybber <darkmine956@gmail.com>
* close #7097 add testcase (#16682)flywind2021-01-111-0/+38
|
* fix #16651 (#16658)cooldome2021-01-111-0/+24
| | | | * fix #16651
* add testcase for #9165 (#15787)flywind2020-10-301-0/+11
|
* `addQuitProc` now works with closures, and c, js(node/browser) backend; fix ↵Timothee Cour2020-06-161-1/+1
| | | | | | | | | | | | | | | some bugs in testament (#14342) * make addQuitProc great again * fix bugs in testament * fix test * change 2016 => 2020 * addQuitProc => addExitProc + locks * move to std/exitprocs
* Fix spellings (#12277) [backport]Federico Ceratto2019-09-271-1/+1
|
* 32 bit fixes (#10608)Arne Döring2019-02-131-16/+20
|
* require errormsg to be specified before file.Arne Döring2018-12-112-8/+7
|
* More converter fixes (#9737)cooldome2018-11-262-7/+69
| | | | | | * fixes #9735 * fixes #9736 * fixes #3503
* make run the default action of a test in testerArne Döring2018-11-233-3/+41
|
* Converter bug fixes (#9700)cooldome2018-11-151-0/+107
| | | | | * Fixes #9698 * Fixes #9699
* Fixes 6544 (#9427)LemonBoy2018-10-191-0/+8
| | | | | | | | | | * Fix call to converters with var/lent args Fixes #6544 * Fix printing of lent types * lent is only valid for result types
* Converters to take into account constraints. Fixes #7520 (#8593)cooldome2018-08-131-0/+20
|
* Handle subtype relations for converter parameters (#8248)LemonBoy2018-07-091-0/+31
| | | Fixes #7098
* make tests green againAndreas Rumpf2018-05-021-1/+1
|
* fixes #4537Andreas Rumpf2016-08-021-0/+23
|
* use correct issue numberAndreas Rumpf2016-07-291-1/+1
|
* fixes #4432Andreas Rumpf2016-07-291-0/+13
|
* fixes #888Andreas Rumpf2016-07-191-0/+18
|
* fixes #3799Andreas Rumpf2016-01-301-0/+49
|
* tests: Trim .nim files trailing whitespaceAdam Strzelecki2015-09-041-1/+1
| | | | via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
* Fix tests some moredef2015-03-171-1/+1
|
* fixes #1181, fixes #1715Araq2014-12-161-0/+7
|
* made some tests greenAraq2014-08-131-30/+4
|
* new tester; all tests categorizedAraq2014-01-134-0/+89