summary refs log tree commit diff stats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* fix #8063 by adding a testcase for: Deprecation warnings for enum values ↵Timothee Cour2019-01-311-2/+25
| | | | print twice (#10508)
* fixes #10042 (allow spaces in import) (#10504)Miran2019-01-312-0/+5
| | | | | This allows spaces in imports, by using the following syntax: * `import "directory with spaces" / subdir / file`, or * `import "directory with spaces/subdir/file"`
* gc: destructors is beginning to work (#10483)Andreas Rumpf2019-01-293-2/+11
| | | | | | | | | | | | | | | | * kochdocs.nim: code cleanup * docgen: nicer indentation * parser.nim: code cleanup * fixes #10458 * make tests green again * make =destroy mixins * gc:destructors: produced C code is almost working * --gc:destructors simple program compiles (but leaks memory) * gc:destructors make examples compile in C++ mode * destructors: string implementation bugfixes * strs.nim: minor code cleanup * destructors: builtin seqs are beginning to work * remove debugging helpers
* fixes #9149 [backport]Araq2019-01-291-0/+22
|
* isLastRead regression fix (#10463)cooldome2019-01-281-0/+9
| | | | | | * fixes #10462 * add a test
* Fix exception tracking in try blocks (#10455)LemonBoy2019-01-271-0/+14
| | | | | | Exceptions raised inside a nkFinally/nkExcept block are not caught by the block itself. Fixes #3886
* closes #8610 ; adds test case (#10454)Timothee Cour2019-01-251-0/+5
|
* properly deprecate parseopt2 (#10452)Miran2019-01-253-32/+6
|
* move tests from `tospaths` to `tos`, fixes #9671narimiran2019-01-232-142/+111
| | | | Also, change some of `echo`s to `doAssert`.
* fix #10339 by returning type attached to nkEmpty (#10370)Vindaar2019-01-232-0/+32
| | | | | | | | | | | | | | | * fix #10339 by checking for nkObjConstr * revert check for nkObjConstr, return type from nkEmpty node The correct type needed in `semObjConstr` to fix #10339 is indeed available, but attached to an `nkEmpty` node. These were previously discarded in `semTypeNode`, which is used to extract the type for the object. * simplify return of PType from `nkEmpty` * also fixes #9866, add test case
* Harmonize the var/let and const handling (#10410)LemonBoy2019-01-231-0/+11
| | | Fixes #10333
* remove `tdont_be_stupid`, fixes #10386narimiran2019-01-231-23/+0
|
* Added basic bit manipulation procs to bitops (#10338)Ico Doornekamp2019-01-231-0/+57
|
* close #3899 by adding test case (#10424)Vindaar2019-01-231-0/+10
|
* Fix semantic analysis with noReturn proc in tail pos (#10422)LemonBoy2019-01-231-0/+10
| | | Fixes #10417
* Fix for issue #10342. better message for generic subclass instantiation (#10354)Ray Imber2019-01-222-1/+12
| | | * Fix for issue #10342. better message for generic subclass instantiation errors.
* Remove deprecated modules (asyncio, sockets, ftpclient) (#10401)Miran2019-01-225-9/+14
|
* Restrict ptr/ref to ptr/ref implicit conversion (#10411)LemonBoy2019-01-221-0/+8
| | | | | | | | * Restrict ptr/ref to ptr/ref implicit conversion Fixes #10409 * Make the ptr conversions explicit in db_odbc
* Fix compileTime pragma applying to whole var/let section (#10389)Neelesh Chandola2019-01-221-0/+15
|
* Object downconversion in VM should not copy (#10378)LemonBoy2019-01-221-0/+17
| | | | | | Hopefully the type-check phase already rejected all the invalid conversions by the time we execute the VM bytecode. Problem reported by chrisheller on the Nim Forum
* Finalizer proc must be global (#10388)LemonBoy2019-01-221-0/+31
| | | Fixes #10376
* Fix subtype conversion w/ varargs arguments (#10402)LemonBoy2019-01-214-0/+4
| | | | | | | | | The type matching is done on the `T` of the `varargs[T]` so the conversion must be performed to `T` and not to the whole type. This problem is only noticeable with the cpp backend since C doesn't give a damn shit about your fucking (wrong) types. Fixes #9845
* Proper check for tyStatic[T] -> U conversions (#10382)LemonBoy2019-01-211-0/+5
| | | | | Drop the outer tyStatic shell then perform the check. Fixes #7609
* Support system.reset in vm (#10400)Oscar Nihlgård2019-01-211-0/+28
|
* Fix error lexer error messages for to large numbers (#10394)Oscar Nihlgård2019-01-211-0/+15
|
* Fix spelling errors (#10379)Federico Ceratto2019-01-191-1/+1
|
* ported havlak and gcbench benchmarks to work with --gc:regionsAndreas Rumpf2019-01-192-41/+54
|
* GC tests: make them take less time to save CI cyclesAndreas Rumpf2019-01-192-7/+5
|
* Fixed getCustomPragmaVal to allow multiple fields in custom annotations (#10289)Ico Doornekamp2019-01-181-0/+9
|
* fix #9629 every binary cmd line option allows on/off/empty=on (#10353)Timothee Cour2019-01-181-1/+4
| | | | | | * fix #9629 every binary cmd line option allows on/off/empty=on * workaround refs #10359
* destructors: first step towards fixing #9617 (#10341)cooldome2019-01-182-0/+23
|
* Remove long deprecated stuff (#10332)Miran2019-01-182-3/+4
|
* [CI] now enables `NIM_COMPILE_TO_CPP=true` to run without allow_failures ↵Timothee Cour2019-01-171-0/+2
| | | | | | | | (#10315) * better fix for `nim cpp` bootstrap error: error: no member named raise_id * [CI] now enables runs NIM_COMPILE_TO_CPP=true without allow_failures * workaround refs #10343
* Properly wrap discarded statements (#10322)LemonBoy2019-01-171-0/+19
| | | | | | Failing to do so lead the codegen to emit invalid code sometimes, especially when C++ references were involved. Fixes #10241
* disable one more test for C++Araq2019-01-161-0/+4
|
* Merge pull request #10318 (Better docs for four modules)Miran2019-01-162-5/+5
|\
| * better docs: strutilsnarimiran2019-01-161-4/+4
| |
| * better docs: sequtilsnarimiran2019-01-161-1/+1
| |
* | json: support tuple (#10010)Timothee Cour2019-01-161-0/+4
| |
* | fix sdl_test test that failed in CI cpp mode (#10314)Timothee Cour2019-01-151-6/+18
| | | | | | | | | | | | * fix sdl_test test that failed in CI cpp mode * preserve old code for NimInAction in `nim c` mode
* | parseopt2.cmdLineRest is now correct too (#10304)Timothee Cour2019-01-151-16/+19
|/
* fix #10305 nim cpp is now nan-correct at CT (#10310)Timothee Cour2019-01-151-0/+28
| | | | | * fix #10305 nim cpp is now nan-correct at CT * add example where simply `nim cpp -d:release` would exhibit nan bug
* fix twrong_refcounts in nim cpp mode (#10313)Timothee Cour2019-01-151-0/+3
|
* fixes #10203 (#10290)Andreas Rumpf2019-01-151-0/+20
| | | | | | * fixes #10203 * make typredef test green again * fixes the regressions differently
* disable one more test for C++Andreas Rumpf2019-01-151-0/+1
|
* typed/untyped return type is invalid for everything except templates and ↵Neelesh Chandola2019-01-151-0/+12
| | | | macros (#10275)
* fix testTimothee Cour2019-01-141-2/+13
|
* fix #9842 #9951: `nim -r` and parseopt.cmdLineRest are now correctTimothee Cour2019-01-141-44/+92
|
* improve formatting in assertEqualsTimothee Cour2019-01-141-11/+11
|
* make tests green againAndreas Rumpf2019-01-141-0/+1
|