Commit Graph

18058 Commits

Author SHA1 Message Date
Andreas Rumpf
dfd8a83f35 fixes #15804 (#15820)
* fixes #15804

* fix the existing test

* add the testcase for #15804

Co-authored-by: narimiran <narimiran@disroot.org>
2020-11-02 14:17:09 +01:00
flywind
eb429988cd fixes #15594 (#15819) 2020-11-02 14:16:33 +01:00
Regis Caillaud
6fa82a5b3a Handle BLOB column type in SQLite as binary data (#15681)
* 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
2020-11-02 13:02:55 +01:00
flywind
4fe56b56ce more clear (#15812) 2020-11-02 13:01:19 +01:00
flywind
5b4c17b5e7 Closure iterators are not supported by VM (#15818) 2020-11-02 10:58:14 +01:00
flywind
544cb107c7 fix #8821 (#15809) 2020-11-02 10:41:44 +01:00
cooldome
00b495de95 Use modern enums in compiler (#15775) 2020-11-02 10:35:24 +01:00
Thomas Tay
5298366f86 Update tables documentation (#15807)
Added a case where a user might use mgetOrPut and create an accidental
copy of a seq.
2020-11-02 10:33:16 +01:00
flywind
558115fa29 fixes #15717 2020-11-02 10:27:48 +01:00
flywind
919593395c fix #15815 (#15817) 2020-11-02 10:22:26 +01:00
flywind
27eb19cc48 fix #15145 (#15816) 2020-11-02 08:56:51 +01:00
flywind
98cec6b692 closes #3670 [add testcase for #3670] (#15808)
* add testcase

* Update tests/template/twhenintemplates.nim

Co-authored-by: Clyybber <darkmine956@gmail.com>
2020-11-01 19:53:00 +01:00
Clyybber
1eb4a38a50 Typos 2020-10-31 17:47:09 +01:00
n5m
bcb30566fc improve public Testament docs (#15710)
* improve glob docs

* punctuation

* move spec descriptions above example

notably, change the description of timeout to reference seconds, not microseconds

* document nimout

* document sortoutput

* explain the action options
2020-10-31 17:45:14 +01:00
flywind
80b0748d75 fix #15651 (#15800)
* fix

* minor
2020-10-31 12:06:13 +01:00
flywind
8115b655e7 support par expression as checkpoint (#15802) 2020-10-31 09:05:01 +00:00
flywind
bc9a521270 [closes #12682]add testcase for #12682 (#15796)
* add testcase for #12682

* fix
2020-10-31 03:03:51 +01:00
Miran
28bbcd9d45 fix #15702, show enum fields documentation (#15792) 2020-10-30 16:30:00 +01:00
Clyybber
7364794fed Grammar fixes 2020-10-30 16:00:37 +01:00
flywind
ae86df12af add testcase for #14227 (#15794) 2020-10-30 15:53:45 +01:00
flywind
2cfe5e0745 [closes #11625 and closes #2488]add global and threadvar(with --threads:off mode ) pragmas supports for JS backend (#15772)
* add global pragma support for js backend

* globalThis

* add support for threadvar

* more tests

* Update compiler/jsgen.nim

Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
2020-10-30 15:34:07 +01:00
cooldome
6fe2e8977d canAlias improvement (#15773)
* canAlias improvement

* fix comment
2020-10-30 11:42:06 +00:00
Miran
ec059240b0 promote collect macro as a map+filter replacement (#15788)
* promote `collect` macro as a map+filter replacement

* Update lib/pure/collections/sequtils.nim
2020-10-30 10:12:01 +01:00
Miran
c0fdc8b215 fix toHex - make it work with int literals (#15770) 2020-10-30 10:04:53 +01:00
flywind
4374c638cd closes #6036 (#15779)
* add testcase for #6036

* try

* try again

* make it work
2020-10-30 10:00:25 +01:00
flywind
1725db9295 closes #7374 (#15781)
* add testcase for #7374

* minor

* fix test
2020-10-30 09:59:56 +01:00
flywind
3028c1be82 add testcase for #7416 (#15782) 2020-10-30 09:59:38 +01:00
flywind
17f08b2939 closes #7658 (#15784)
* fix #7658

* more
2020-10-30 09:58:55 +01:00
flywind
2de90a14cb add testcase for #8012 (#15785) 2020-10-30 09:57:26 +01:00
flywind
1655c04aa3 add testcase for #9165 (#15787) 2020-10-30 09:57:02 +01:00
Antonis Geralis
c274d9aed6 add approxequal (#15766)
* add approxequal

* Address review comments, tests that pass

* more wikipedia links [ci skip]

* forgot since

Co-authored-by: b3liever <b3liever@yandex.com>
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
2020-10-30 09:56:28 +01:00
flywind
b5df823191 add testcase for #9091 (#15791)
* add testcase for #9091

* more tests
2020-10-30 09:55:21 +01:00
flywind
f79ded3cb6 fix #15638 (#15789) 2020-10-30 09:16:47 +01:00
flywind
d8fb2379c9 add testcase for #7127 (#15780) 2020-10-30 03:54:39 +01:00
flywind
33e258c72f add tests for #7686 (#15771) 2020-10-29 18:12:14 +01:00
Antonis Geralis
912d8f80ad Fix doc comment for sumKbn (#15769)
Co-authored-by: b3liever <b3liever@yandex.com>
2020-10-29 17:54:28 +01:00
Andreas Rumpf
87a60c1b28 fixes #15413 (#15768)
* fixes #15413

* better hide it properly

* see if this makes our list of important packages happy
2020-10-29 17:32:56 +01:00
Antonis Geralis
53d9902347 Make default state public (#15763)
* Make default state public

* Address review comments

Co-authored-by: b3liever <b3liever@yandex.com>
2020-10-29 11:14:22 +01:00
Yanis Zafirópulos
0cae8ef2ca Massive documentation fixes + copy editing (#15747) 2020-10-29 10:33:47 +01:00
Tim Smith
485d4ff802 Spelling and Grammer fixes (#15719)
Co-authored-by: Tim Smith <tim.smith.hdg@gmail.com>
Co-authored-by: Miran <narimiran@disroot.org>
2020-10-28 17:56:56 +01:00
Antonis Geralis
94e2b9e837 Make newObjUninit proc to adhere to its name (#15764)
Co-authored-by: b3liever <b3liever@yandex.com>
2020-10-28 17:54:42 +01:00
cooldome
610e9b2fe9 fix #15756 (#15761)
* fix #15756

* simplify test
2020-10-28 13:24:38 +00:00
cooldome
0956a99537 ARC now capable of custom extra alignment. Ref, closure and seq support. (#15697) 2020-10-28 14:00:49 +01:00
narimiran
732ddc02da change/remove deprecated stuff 2020-10-28 10:20:18 +01:00
narimiran
b13fb9ddb8 fix #15750 2020-10-28 10:20:18 +01:00
cooldome
f8cac6bbbc fix #15752 (#15754) 2020-10-28 00:09:26 +01:00
Timothee Cour
0fb878324e honor --declaredLocs in more places, including type mismatch errors; also 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
2020-10-27 14:19:28 +01:00
shirleyquirk
218acfe367 fixes #10456,#12928 issues when chaining templates to sortedByIt (#15734)
* update c_malloc's to csize_t 

fix for broken --os:ios

* I'm an idiot sorry

* Create talgorithm.nim

* workaround for #10456

I don't understand the intricacies of how lambdalifting and template expansions interact with lent, so i don't know how to fix the real problem, but this sidesteps whatever issue that is.

* working test, use typeof rather than auto
2020-10-27 12:38:46 +00:00
Regis Caillaud
12143d90c8 Add C function dup and dup2 posix to system/io (#15675)
* * Add handle to dup and dup2 posix as duplicate and duplicateTo in std/ioutils.
* Added small test & changelog entry

* Fixed import in tioutils
removed when isMainModule

* * Nest test inside block. Rename proc var -> let in captureStdout
* Renamed tmpfile to iotuils.txt
* Added block: # duplicate, duplicateTo
* Improved docstring
* Clean non-idiomatic code
* Added runnable examples

* rm 2 trailing space in expected output

* Made syntax prettier

* Runnable example: file in getTempDir()

* Tmp -> Temp

* Fixed runnableExamples on windows
2020-10-27 08:52:40 +01:00
n5m
066f3ebc2a add tests for Testament "reject" action (#15709)
* add test for reject action

* highlight that a compilation failure is expected

* add the converse test for action=reject

* add trailing newline

* fix wording
2020-10-27 08:48:14 +01:00