Timothee Cour
6f6370367b
fix #16949 --app:staticlib works on openbsd; --app:staticlib tested in CI ( #16950 )
2021-02-08 09:47:05 +01:00
Timothee Cour
6f1289b80c
remove .github/workflows/ci_ssl.yml; instead run via trunner_thirdparty ( #16221 )
2021-02-02 18:32:33 -08:00
Timothee Cour
e112974920
fix #16752 : threadvar now works with importcpp types; osx now uses native TLS (--tlsEmulation:off), which can be orders of magnitude faster ( #16750 )
...
* osx now uses native TLS, which can be orders of magnitude faster
* add {.cppNonPod.}
* improve test
* changelog, docs, disable part of windows test
2021-01-27 22:35:43 +01:00
Timothee Cour
4fc7fcb775
--hintAsError (#16763 )
...
* --hintAsError
* add test, changelog
* condsyms
2021-01-20 10:49:59 +01:00
flywind
335f849c36
close #9901 add testcase ( #16662 )
...
* close #9901 add testcase
* follow advice
2021-01-11 18:00:57 +00:00
Clyybber
a0134671ee
Make test independent of repo location ( #16571 )
...
* Make test independent of repo location
* Fix differently
2021-01-03 19:15:56 +01:00
flywind
c71f5650c6
Revert "Make config processing order test more robust" ( #16561 )
...
This reverts commit cf714c129f .
2021-01-03 12:55:08 +08:00
Clyybber
cf714c129f
Make config processing order test more robust
2021-01-02 21:47:26 +01:00
Timothee Cour
471aab86a0
fix #16526 run config.nims before foo.nim.cfg ( #16557 )
...
* fix #16526 run config.nims before foo.nim.cfg
* add test
2021-01-02 21:41:44 +01:00
flywind
73f778e441
follow #16505 move and active tests ( #16508 )
...
* fix printing negative zero in JS backend
* move tests
2020-12-30 15:06:50 +01:00
Timothee Cour
8508c4e1c2
fix hintProcessing dots interference with static:echo and hintCC; add 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
2020-12-30 14:58:41 +01:00
flywind
89a2390f8b
fix printing negative zero in JS backend ( #16505 )
2020-12-29 15:50:22 +01:00
flywind
6d442a40a6
use doAssert in tests ( #16486 )
2020-12-28 14:13:21 +01:00
flywind
3f9a2ebea5
fix nim js cmp fails at CT ( #16473 )
2020-12-27 10:13:57 +01:00
Timothee Cour
c731f7ab14
fixes #15939 , fixes #15464 , fixes #16169 , fixes #16226 VM now supports 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
2020-12-03 16:55:43 +01:00
Timothee Cour
84f2ad3068
add test for --eval; fix a minor bug ( #16224 )
2020-12-01 21:09:08 -08:00
Timothee Cour
b809562c7c
make megatest consistent with unjoined tests wrt newlines, honor newlines in output spec ( #16151 )
...
* fix megatest newlines
* still allow missing trailing newline for now but in a more strict way than before
2020-11-28 09:09:31 +01:00
Timothee Cour
3e7077ac7d
fix #14339 , #13511 , #14420 : fixes limited VM support for addr ( #16002 )
...
* fix #14339 : fixes limited VM support for addr
* strengthen test
* reference bug #16003
* also fixes #13511
* also fixes #14420
2020-11-25 20:48:10 +01:00
Andreas Rumpf
d306a04466
fixes #16069 ; [backport:1.2] [backport:1.4] ( #16115 )
...
* fixes #16069 ; refs https://github.com/nim-lang/RFCs/issues/257 [backport:1.2] [backport:1.4]
* make tests green again
2020-11-24 16:09:00 +01:00
Timothee Cour
5e8ac485a2
followup #15970 strenghten regression tests ( #16075 )
...
* followup #15970 strenghten regression tests
* _
2020-11-20 22:16:59 +00:00
Timothee Cour
b3c3557c33
fix #16025 repr now consistent: does not insert trailing newline ( #16034 )
2020-11-19 12:12:51 -08:00
cooldome
acf8316e50
Disallow nil dereference at compile time ( #16032 )
...
* bring back the semfold of nil
* remove space
* fix test
* proc type can't be dereferenced
* disallow nil dereference at compile time
* changelog
2020-11-18 23:30:28 +01:00
cooldome
87d3e5331a
Semfold for nil cast ( #16030 )
...
* bring back the semfold of nil
* remove space
* fix test
* proc type can't be dereferenced
2020-11-18 17:19:57 +00:00
flywind
e6e1e9574d
combine PR#16009 and PR#16012 ( #16024 )
...
* fix #15623
* add testcase for #15623
* add testcase
* combine #16009
* support casting nil to NilableTypes in VM
2020-11-18 08:28:05 +01:00
Timothee Cour
1a47fc2291
strengthen taddr.nim: add test case for #14578 ; reference other issues; test cpp ( #15960 )
2020-11-13 14:44:44 -08:00
Bung
797cb2e67b
Fix #8404 JS backend doesn't handle float->int type conversion ( #15950 ) [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
2020-11-13 13:44:48 +01:00
Miran
bbe49a14ae
Correct all eggs ( #15906 )
...
* "eg" is a misspelled "egg", "e.g." is "exempli gratia"
* Also, "ie" is "i.e.".
2020-11-10 21:53:25 +01:00
cooldome
3af7818af4
Fix #12636 ( #15850 )
...
* close #11142
* fix #12636
* undo unwanted changes
* fix illegal recursion case
2020-11-05 18:55:52 +01:00
flywind
bc9a521270
[ closes #12682 ]add testcase for #12682 ( #15796 )
...
* add testcase for #12682
* fix
2020-10-31 03:03:51 +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
cooldome
fe187719ab
fix #15516 ( #15518 )
2020-10-08 09:12:03 +02:00
Andreas Rumpf
ff13f8cc3c
fixes #15210 [backport:1.2] ( #15237 )
...
* fixes #15210 [backport:1.2]
* use patched version of bigints library
2020-08-31 14:46:23 +02:00
Andreas Rumpf
a3a87cdb29
fixes #14616 [backport:1.2] ( #15109 )
2020-07-29 11:11:58 +02:00
flywind
c5f64f101b
fix #13086 ( #14987 )
...
* fix #6608
* minor
* fix
* clean tests
* make testamnet happy
* again
* minor
* fix #13086
2020-07-15 03:46:17 -04:00
Clyybber
f2b041f168
Reenable a few tests
2020-07-14 19:50:42 +02:00
Tomohiro
61a6098f2d
Limit number of error messages from gcc/clang backend ( #14852 )
...
* Limit number of error messages from backend
* Avoid duplication of -fmax-errors
* make tests/misc/trunner.nim success
2020-07-07 10:22:10 +02:00
Timothee Cour
dc5a40f3f3
{.deprecated: [existsFile: fileExists].} ( #14735 )
...
* {.deprecated: [existsFile: fileExists].}
* s/existsFile/fileExists/ except under deps
* workaround pending #14819
* fix test
2020-07-02 16:19:13 +02:00
Clyybber
1440e70c62
allow packed union ( #14868 )
...
Co-authored-by: Arne Döring <arne.doering@gmx.net >
2020-07-01 11:41:03 +02:00
Danil Yarantsev
0327159344
Add test-cases to some fixed issues to close them ( #14795 )
2020-06-24 20:38:08 -07:00
Danil Yarantsev
80952cadaa
Reject casts to builtin typeclasses ( #14788 )
...
* Closes #14231 , closes #14452
* Merge test to tcast.nim
2020-06-24 22:32:01 +02:00
Timothee Cour
a9eee6db65
misc testament cleanups ( #14764 )
...
* misc testament cleanups extracted cleanups from #14530
* make sure all CI failures can be searched with `FAIL: ` including megatest failures
2020-06-23 10:53:03 +02:00
Andreas Rumpf
3ba0c30758
sizeof for empty objects/tuples should be 1; fixes #14690 ( #14751 )
2020-06-21 19:58:37 +02:00
Timothee Cour
3cf88c2b49
walkDirRecFilter, update doc CI filter, compiler/index.nim for docs + 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
2020-06-01 19:21:41 +02:00
Timothee Cour
38cb277653
docgen: mangling using _. instead of @@ to avoid issue ( #14454 )
2020-05-26 10:08:35 +02:00
Timothee Cour
58282547f6
fix #6583 , fix #14376 , index+search now generated for all projects, many bug fixes with nim doc ( #14324 )
...
* refs #6583 fix nim doc output
* changelog
* change default for outDir when unspecified
* cleanups
* --project implies --index
2020-05-25 13:25:40 +02:00
Timothee Cour
e909486e5c
trunner was not actually being tested in non-CTFFI mode; minor testament 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
2020-05-19 09:41:31 +02:00
Timothee Cour
c777f2fb60
fix some issues with --backend ( #14363 )
...
* fix some issues with --backend
* fix https://github.com/timotheecour/Nim/issues/175 ; improve upon #14306
2020-05-16 13:09:18 +02:00
Timothee Cour
de74362213
fix #14314 do not analyze importc procs for effects ( #14319 )
2020-05-12 16:19:03 +02:00
Andreas Rumpf
89be5be03e
fixes #13698 [backport:1.2] ( #14175 )
2020-04-30 22:45:02 +02:00
Jacek Sieka
7d6cbf290a
Error -> Defect for defects ( #13908 )
...
* 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.
2020-04-28 19:56:01 +02:00