summary refs log tree commit diff stats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
* close #13062(add testcase for #13062) (#15956)flywind2020-11-131-0/+27
|
* close #2771(add testcase for #2771) (#15932)flywind2020-11-131-0/+21
|
* fix #15941 (#15948)flywind2020-11-131-0/+17
| | | | | | | * fix #15941 * add testcase * update
* js -d:nodejs now supports osenv: `getEnv`, `putEnv`, `envPairs`, `delEnv`, ↵Timothee Cour2020-11-121-0/+26
| | | | | | | | | | | `existsEnv` (v2) (#15826) * js -d:nodejs now supports osenv: `getEnv`, `putEnv`, `envPairs`, `delEnv`, `existsEnv` * refactor to osenv * fix for js (without -d:nodejs) + VM Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* make var string return var char w/ BackwardsIndex (#15461)hlaaftana2020-11-121-0/+7
| | | | | | | | * make var string return var char w/ BackwardsIndex fixes #14497 * work around VM bug * properly workaround again
* fix #15916 (#15917) [backport]flywind2020-11-121-0/+16
| | | | | | | * fix #15916 * add testcase for #15916 * add comments
* Fix #15909 (#15914)Fanael Linithien2020-11-121-0/+16
|
* doAssertRaises improvements; nimscript supports `except Exception as e` (#15765)Timothee Cour2020-11-121-0/+6
| | | | | | | * doAssertRaises now correctly handles foreign exceptions; now shows which exception is raised on mismatch * nimscript now handles `Exception as e` * remove catch-all doAssertRaises overload from this PR Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fix #14157 (#15877)flywind2020-11-121-0/+6
| | | | | | | | | | | | | * fix #14157 * Update compiler/jsgen.nim * add changelog * Update compiler/jsgen.nim * Update tests/js/tmodify_cstring.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fix #12726 Cannot take the compile-time sizeof Atomic types (#15928)Bung2020-11-121-0/+18
| | | | | * fix #12726 Cannot take the compile-time sizeof Atomic types * fix for arch 32
* Fix 14127 js from int to int casting (#15918)Bung2020-11-111-0/+30
| | | | | | | | | * fix #14127 from int to int casting * add test for #14127 * use template for test, also test uint2int * move to tests/types/t14127_cast_number.nim targets:c cpp js
* close #4318(add testcase for #4318) (#15904)flywind2020-11-111-0/+12
| | | | | | | | | * close #4318(add testcase for #4318) * Update tests/objects/t4318.nim Co-authored-by: Juan Carlos <juancarlospaco@gmail.com> Co-authored-by: Juan Carlos <juancarlospaco@gmail.com>
* Correct all eggs (#15906)Miran2020-11-105-5/+5
| | | | * "eg" is a misspelled "egg", "e.g." is "exempli gratia" * Also, "ie" is "i.e.".
* rst: add support for markdown tables (#15854)Miran2020-11-101-0/+24
| | | | | | | * rst: add support for markdown tables * change template into proc * don't create unnecessary `seq[string]`
* follow #15874(add testcase for #15874) (#15893)flywind2020-11-101-0/+8
|
* fix #15825 (#15894)cooldome2020-11-091-0/+11
| | | | | * fix #15825 * better fix
* Fix 15629 (#15888)cooldome2020-11-091-2/+27
| | | | | | | | | | | * fix #15858 * fix space * fix #15629 * Revert "fix space" * Revert "fix #15858"
* Fix #15858 (#15887)cooldome2020-11-091-0/+8
| | | | | | * fix #15858 * fix space * fix #15629 * Revert "fix #15629"
* fix #15707 (#15870)cooldome2020-11-091-0/+14
|
* fix #12558 (#15864)flywind2020-11-091-0/+15
| | | | * fix #12558 * Update compiler/pragmas.nim
* Add a macro returning enum items count (#15824)Ivan Bobev2020-11-091-0/+40
| | | | | | | Add a macro `enumLen` which is used to determine the number of items in an enumeration type to the `typetraits.nim` module. Also, add unit tests for it in the `ttypetraits.nim` module. Related to nimlang/Nim#15824
* close #11637(add testcase for #11637) (#15879)flywind2020-11-081-0/+52
| | | | | * close #11637(add testcase for #11637) * Update tests/vm/t11637.nim
* Fix #15706 (#15846)Bung2020-11-071-0/+6
| | | | | * fix #15706 Underflow not detected when using dec on distinct ranges * fix #15846 first, jsgen even doesn't care of range in this op
* close #8558(add testcase for #8558) (#15872)flywind2020-11-071-0/+26
|
* Make `{.requiresInit.}` to work for distinct types (#15869)Ivan Bobev2020-11-061-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make `requiresInit` pragma to work for distinct types in addition to objects. Tagging of distinct types with `requiresInit` pragma was already supported, but its impact wasn't applied. Now its behavior when applied on distinct types is as follows. Given the following distinct type definitions: ```nim type DistinctObject {.requiresInit, borrow: `.`.} = distinct MyObject DistinctString {.requiresInit.} = distinct string ``` The following code blocks will fail to compile: ```nim var foo: DistinctFoo foo.x = "test" doAssert foo.x == "test" ``` ```nim var s: DistinctString s = "test" doAssert s == "test" ``` But these ones will compile successfully: ```nim let foo = DistinctFoo(Foo(x: "test")) doAssert foo.x == "test" ``` ```nim let s = "test" doAssert s == "test" ```
* Closes #12897 (#15867)Clyybber2020-11-061-0/+9
|
* close #8829(add testcase for #8829) (#15866)flywind2020-11-061-0/+18
|
* fix #15851 (#15852)flywind2020-11-061-1/+1
| | | | | * fix #15851 * {.cast(noSideEffect).}
* static[T] related fixes (#15853)cooldome2020-11-061-0/+101
| | | | | | | | | * close #9679 * close #7546 * close #9520 * close #6177
* fix #15609 (#15856)cooldome2020-11-051-0/+33
| | | | | * fix #15609 * fix test
* Fix #12636 (#15850)cooldome2020-11-051-1/+13
| | | | | | | | | * close #11142 * fix #12636 * undo unwanted changes * fix illegal recursion case
* close #11142 (#15847)cooldome2020-11-051-0/+14
|
* fix adding empty sequence to HTTP headers (#15783)flywind2020-11-051-0/+27
| | | | | * fix adding empty sequence to HTTP headers * add tests
* fix #15663 (#15839) [backport:1.4]flywind2020-11-051-0/+7
|
* fix #15463 (#15831)flywind2020-11-051-1/+11
|
* close #10307(add testcase for #10307) (#15840)flywind2020-11-051-0/+23
|
* close #8457 (#15844)flywind2020-11-051-0/+11
|
* fix static[Slice[T]] as argument issue (#15842)cooldome2020-11-041-0/+12
|
* Clarify the sense in which Nim supports recursive iterators in the (#15834)c-blake2020-11-041-2/+2
| | | manual, the tutorial, and the `tbintree` test.
* fix #15835 (#15838)flywind2020-11-041-0/+17
| | | | | * fix #15835 * add tests
* fix #12640 (#15829)flywind2020-11-031-0/+25
|
* follow #15818 and close #7109 (#15823)flywind2020-11-021-0/+8
| | | | | | | | | * follow #15818 and close #7109 * Update compiler/jsgen.nim Co-authored-by: Juan Carlos <juancarlospaco@gmail.com> Co-authored-by: Juan Carlos <juancarlospaco@gmail.com>
* `ioutils` are moved to `fusion` (#15822)Miran2020-11-021-49/+0
|
* fixes #15804 (#15820)Andreas Rumpf2020-11-022-3/+18
| | | | | | | | | * fixes #15804 * fix the existing test * add the testcase for #15804 Co-authored-by: narimiran <narimiran@disroot.org>
* fixes #15594 (#15819)flywind2020-11-021-0/+10
|
* Handle BLOB column type in SQLite as binary data (#15681)Regis Caillaud2020-11-021-0/+50
| | | | | | * Fixed not handling blob correctly in sqlite * Fixed setLen commented by mistake * Added binary example as db_sqlite doc * Added tests for sqlite binary data
* Closure iterators are not supported by VM (#15818)flywind2020-11-021-0/+9
|
* fix #8821 (#15809)flywind2020-11-021-0/+12
|
* fixes #15717flywind2020-11-021-0/+19
|