summary refs log tree commit diff stats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Add testcase for #4796 (#14784)Clyybber2020-06-252-0/+13
| | | | | * Add testcase for #4796 * Fix test
* expr => untyped; stmt => typed (#14804)Timothee Cour2020-06-251-0/+6
| | | | | * expr => untyped; stmt => typed * changelog + comment
* fix #14802 (#14803)Timothee Cour2020-06-251-0/+7
|
* Add test-cases to some fixed issues to close them (#14795)Danil Yarantsev2020-06-244-0/+35
|
* Reject casts to builtin typeclasses (#14788)Danil Yarantsev2020-06-241-1/+8
| | | | | * Closes #14231, closes #14452 * Merge test to tcast.nim
* add typetraits.elementType (#14780)Timothee Cour2020-06-241-0/+20
| | | | | * add typetraits.elementType * add a test for 0-sized seq
* fromJson: support object variants (#14694)Timothee Cour2020-06-241-0/+53
|
* fix #10343 (#14789)Timothee Cour2020-06-241-2/+3
|
* Add testcase for #14440 (#14771)Clyybber2020-06-231-1/+15
|
* init checks and 'out' parameters (#14521)Andreas Rumpf2020-06-233-4/+33
| | | | | | | | | | | * I don't care about observable stores * enforce explicit initializations * cleaner code for the stdlib * stdlib: use explicit initializations * make tests green * algorithm.nim: set result explicitly * remove out parameters and bring the PR into a mergable state * updated the changelog
* misc testament cleanups (#14764)Timothee Cour2020-06-232-10/+6
| | | | | * misc testament cleanups extracted cleanups from #14530 * make sure all CI failures can be searched with `FAIL: ` including megatest failures
* Deprecate and/or remove ospaths (#14767)Juan Carlos2020-06-232-2/+2
|
* fix bug in semgnrc: runnableExamples should not semcheck, even with > 1 arg ↵Timothee Cour2020-06-231-0/+10
| | | | (#14768)
* sizeof for empty objects/tuples should be 1; fixes #14690 (#14751)Andreas Rumpf2020-06-211-1/+9
|
* fix #13899 defer now works with async (#14723)Timothee Cour2020-06-191-7/+18
|
* Add testcases for #11811 and #14315 (#14726)Clyybber2020-06-192-1/+22
| | | | | * Add testcase for #11811 * Add testcase for #14315
* fix #14685 tests/async/t7758.nim flaky (#14721)Timothee Cour2020-06-191-2/+7
| | | | | | | * fix #14685 tests/async/t7758.nim flaky * address comment * address comment
* add legacy workaround; improve test so that it actually tests for the bugfixTimothee Cour2020-06-191-31/+7
|
* Update tuple newLitsolo9892020-06-191-0/+32
|
* [cleanups] doassert => doAssert; mark deadcode (#14711)Timothee Cour2020-06-173-14/+14
|
* Remove deprecated stuff from stdlib (#14699)Miran2020-06-1720-78/+139
| | | | | | | * update to the latest Jester * remove deprecated procs from some stdlib modules * 'criterion' is not maintained anymore and relies on obsolete stuff
* use check to investigate #14685 flaky tests/async/t7758.nim (#14689)Timothee Cour2020-06-161-2/+3
|
* cleanup tests/test_nimscript.nims (#14686)Timothee Cour2020-06-161-9/+1
|
* Close#5586 (#14682)Dylan Modesitt2020-06-162-3/+0
| | | | | * re-enable macos and bsd on some coro tests * re-enable macos and bsd on some coro tests
* Set cincludes and clibdir for FreeBSD, OpenBSD and NetBSD. (#14680)Euan2020-06-161-3/+0
|
* `addQuitProc` now works with closures, and c, js(node/browser) backend; fix ↵Timothee Cour2020-06-162-1/+22
| | | | | | | | | | | | | | | 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 #14179, fix #14142, make CI 1.4x faster (2x faster locally) (#14658)Timothee Cour2020-06-161-0/+7
| | | | | | | | | | | | | | | * fix #14142: no more clash with: import os + use of existsDir/dirExists/existsFile/fileExists/findExe in config.nims * remove a comment * Revert "fixes the regression #12860 caused; hotfix" This reverts commit 3d2459bdc0b6d6236a2cd9209ed81c965ee411a5. * Revert "Undefine `paramCount` & `paramStr` in nimscript.nim for *.nims (#12860)" This reverts commit d38853c504d89d6e361f064a17391afaf42d74b8. * noNimScript => noWeirdTarget + noNimJs
* make tests/stdlib tests joinable (#14626)Timothee Cour2020-06-158-7/+44
| | | | | * make tests/stdlib tests joinable * fixup
* make `fromJson/toJson` work with `array[range, typ]`, + 1 bugfix (#14669)Timothee Cour2020-06-151-0/+26
| | | | | * make toJson more robust * properly handle array
* normalizeExe (#14668)Timothee Cour2020-06-151-0/+10
|
* fix codegen bug due to changing existing symbol declaration in template (#14666)jcosborn2020-06-151-0/+106
|
* fix #14655 setLen(seq) now zeros memory (#14656)Timothee Cour2020-06-141-1/+8
| | | | | * simplify sysstr.nim * fix #14655
* fix #13166 tioselectors flaky test on freebsd+OSX (#14634)Timothee Cour2020-06-122-4/+53
|
* Disable tfdleak_multiple on platforms other than Windows (#14624)Timothee Cour2020-06-111-1/+4
|
* fix #14545 windows CI docs (#14590)Timothee Cour2020-06-101-0/+32
| | | | | | * fix #14545 windows paths * add lib/std/private/strutils2.nim * remove dependency strutils2 => strutils * address comment: lib/std/private/strutils2.nim => compiler/strutils2.nim
* enable tioselectors on osx; more diagnostic for #13166 (#14625)Timothee Cour2020-06-091-5/+3
|
* fixes #14279 (#14618)Andreas Rumpf2020-06-091-0/+15
|
* `toJson`, `jsonTo`, json (de)serialization for custom types; remove ↵Timothee Cour2020-06-081-0/+44
| | | | | | | | | | | | | | | | | | | | | dependency on strtabs thanks to a hooking mechanism (#14563) * json custom serialization; application for strtabs * serialize using nesting * make toJson more feature complete * add since * Revert "Improve JSON serialisation of strtabs (#14549)" This reverts commit 7cb4ef26addb3bb5ce2405d8396df6fd41664dae. * better approach via mixin * toJson, jsonTo * fix test * address comments * move to jsonutils * doc * cleanups * also test for js * also test for vm
* Fix #14568 (#14583)Clyybber2020-06-072-2/+26
| | | | | | | * Fix #14568 * Add testcase * Fix bogus test * Adapt other failing tests * Declarations are always first writes
* implement the 'bind' statement for generics, it was an oversight that this ↵Andreas Rumpf2020-06-071-0/+17
| | | | was never implemented (#14584)
* untestable/thttpclient_ssl: some tests are no longer brokenLeorize2020-06-061-6/+6
| | | | | With the changes to the default cipher suites, certain tests are no longer broken and are acting as they should.
* untestable/thttpclient_ssl: move incomplete-chain to dubious_brokenLeorize2020-06-061-1/+1
| | | | | It's unsure why this test fail for macOS, but it doesn't hurt if it's not passing.
* asyncnet, net: clear openssl error queue before performing I/OLeorize2020-06-061-0/+1
| | | | | | | | | | | | Per SSL_get_error(3): The current thread's error queue must be empty before the TLS/SSL I/O operation is attempted, or SSL_get_error() will not work reliably. There has been records of not clearing the error queue causing weird SSL errors when there shouldn't be any, see: https://github.com/openssl/openssl/issues/11889
* thttpclient_ssl: be less specificLeorize2020-06-061-2/+1
| | | | | | The error we're looking for is "certificate verify failed". The routine that reports this will be different between openssl versions, so it makes no sense to track the routine name as well.
* untestable/thttpclient_ssl: fix macosLeorize2020-06-061-0/+1
|
* untestable/thttpclient_ssl: fix 10000-sans testLeorize2020-06-061-1/+3
|
* untestable/thttpclient_ssl: catch errors caused by the bad catergoryLeorize2020-06-061-1/+1
| | | | | Previously the errors caused by `SSL_shutdown()` masked these, so now we catch them.
* asyncnet, net: call SSL_shutdown only when connection establishedLeorize2020-06-061-2/+3
| | | | | | This commit prevents "SSL_shutdown while in init" errors from happening. See https://github.com/openssl/openssl/issues/710#issuecomment-253897666
* fix #14576 addr of param (including for lent) now works with nim js (#14577)Timothee Cour2020-06-061-1/+61
| | | | | * fix #14576 addr(param) now works in nim js * workaround https://github.com/nim-lang/Nim/issues/14578
* remove isMainModule from json,os,sequtils (#14572)Timothee Cour2020-06-063-0/+757
| | | | | * move json.isMainModule => tjson * move isMainModule => tos,tsequtils