summary refs log tree commit diff stats
path: root/tests/misc
Commit message (Collapse)AuthorAgeFilesLines
* fixes #8671; show helpful msg (lookup symbol, eg iterator) on 'attempting to ↵Timothee Cour2018-10-142-4/+5
| | | | call undeclared routine' error (#8786)
* implement sizeof and alignof operator (manually squashed #5664) (#9356)Timothee Cour2018-10-142-11/+348
|
* Fix locals() interaction with generic typesLemonBoy2018-09-211-0/+19
| | | | | | | Follow the same logic as semTupleFieldsConstr and only skip skVar since we're gonna add a nkDefer anyway. Fixes #8985
* transformed {.reorder: on.} into {.experimental: codeReordering.}, added testsawr2018-09-041-1/+2
|
* Fix abs & unary sub in semfold (#8724)Oscar Nihlgård2018-08-221-0/+4
|
* Add sizeof for arrays of integral types (#8445)cooldome2018-07-301-2/+20
|
* Bugfix for modules with multi byte characters in the name (#8319)Oscar Nihlgård2018-07-141-1/+4
|
* Deprecate 'c', 'C' prefix for octal literals, fixes #8082 (#8178)Vindaar2018-07-031-3/+3
| | | | | | | | | | | | | | | * deprecate `0c`, `0C` prefix for octal literals Deprecates the previously allowed syntax of `0c` and `0C` as a prefix for octal literals to bring the literals in line with the behavior of `parseOct` from parseutils. * add `msgKind` arg to `lexMessageLitNum` for deprecation messages * change literal tests to check all valid integer literals Also adds the `tinvaligintegerlit3` test to test for the (still) invalid `0O` prefix.
* allow referencing other parameters in default parameter valuesZahary Karadjov2018-06-161-0/+114
| | | | | | | | fix #7756 fix #1201 fix #7000 fix #3002 fix #1046
* Support multi byte characters in module names (#7916)Oscar Nihlgård2018-05-311-0/+8
|
* make tests green againAraq2018-05-141-1/+1
|
* make tests greenAndreas Rumpf2018-05-051-5/+5
|
* Don't hide overflow/underflow/divbyzero in semfold (#7732)Oscar Nihlgård2018-05-021-0/+23
| | | | | * firstOrd/lastOrd bugfix * Don't hide overflow/underflow/divbyzero in semfold
* make memoization test compile againAndreas Rumpf2018-04-291-1/+1
|
* Static[T] fixes (#7333)zah2018-03-241-0/+32
| | | | | | | | | | | * fix the usage of unresolved static[T] parameters in proc signatures * fix tsametype and tmacrogenerics * Allow creating composite type classes with concepts and using them in type signatures * Allow integers to be used in ident concatenations * Support using imported C++ generic types in proc signatures * fixes #7230 * closes #7379 * re-enable some metatype tests
* Add ability for users to elide ':' or '=' when CLI authors pass a (#7297)c-blake2018-03-081-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add ability for users to elide ':' or '=' when CLI authors pass a non-empty partial symbol table. Behavior should be identical to the old behavior if empty partial symbol tables are passed. "Partialness" of the symbol table refers to the fact that one need only specify option keys that are toggles/booleans/do not take arguments, hence the "NoArg" suffixes in shortNoArg and longNoArg. commandLineParams() returns seq[TaintedString], so use that consistently in getopt() and initOptParser(seq[TaintedString]) dropping the taint at the quoting stage just as with the paramStr() logic. Fix capitalization inconsistency of cmdLongOption. Export OptParser.cmd and OptParser.pos so that, at least *in principle*, users of this API can handle "--" option processing termination or some "git-like" sub-command stop word with a separate option sub-syntax. { Eg., ``case p.key of "": echo "trailing non-option args: ", p.cmd[p.pos..^1]`` or ``case p.kind of cmdArgument: if p.key == "mysubcmd": ...``. } Really, searching for the last delimiter before p.pos is probably needed to frame the trailing text..Not the nicest API, but still possible with effort. * Make requested changes from string to seq[char] (see https://github.com/nim-lang/Nim/pull/7297) * Document new behavior and elaborate on some special cases. * NoArg => NoVal to be less ambiguous/more clear. * Add more documentation and an example snippet. * Tweak language. Clarify still using ':'/'=' is ok. * Add a test case for new NoVal behavior.
* fixes #3985Araq2018-02-101-0/+10
|
* make more tests greenAraq2018-02-105-5/+5
|
* fixes #4220Araq2018-02-101-1/+21
|
* make tests green againAraq2017-12-151-13/+13
|
* Improved collection-to-string behavior (#6825)Fabian Keller2017-12-141-1/+1
|
* make tests green againAndreas Rumpf2017-11-211-12/+0
|
* Move deprecated romans module from stdlib to Nimble package (#6660)Lynn C. Rees2017-11-151-71/+0
|
* make tests green againAraq2017-11-011-1/+1
|
* first implementation of package level types that allow forwarding across ↵Andreas Rumpf2017-10-281-6/+2
| | | | module boundaries
* make tests green againAndreas Rumpf2017-10-101-1/+1
|
* Merge branch 'stringify-array' of https://github.com/krux02/Nim into ↵Andreas Rumpf2017-10-091-2/+1
|\ | | | | | | krux02-stringify-array
| * removed newString proc again, reverted some unnecesary changesArne Döring2017-07-241-2/+1
| |
* | make tests green againAndreas Rumpf2017-10-011-11/+11
| |
* | the parser finally parses 'echo {1,2}' as it shouldAndreas Rumpf2017-09-305-10/+10
| |
* | Remove expr/stmt (#5857)Arne Döring2017-07-253-7/+4
|/
* Merge pull request #5952 from Parashurama/fix_parseoptVarriount2017-06-131-0/+57
|\ | | | | Fix parseopt custom arguments
| * fixes parseopt/parseopt2 custom cmdline args.Parashurama2017-06-061-0/+57
| |
* | restrict casting for closure. (#5948); fixes #5742Parashurama2017-06-071-0/+23
|/ | | | | | | | | * restrict casting for closure. This commit forbid casting a closure to anything other than another closure. use rawEnv/rawProc to access underlaying pointers. * better error message for closure cast * fixes #5742
* another attempt to get travis greenAndreas Rumpf2017-03-291-13/+0
|
* Fixes to support Dragonfly BSD. (#5552)Eugene Kabanov2017-03-171-0/+2
| | | | | | | | | * Fix kqueue.nim and ansi_c.nim to support dragonfly. * Fix ioselectors.nim, threads.nim to support dragonfly. * Fix deprecated dealloc call in tioselectors.nim. * Fix tfsmonitor.nim test to run only on Linux. * Fix osproc.nim return wrong exit codes. * Fix getAppFilename() for dragonfly. * Fix proper exit code handling.
* big compiler refactoring; avoid globals for multi method dispatcher generationAndreas Rumpf2017-02-221-5/+5
|
* make tests on Windows green under --pedanticAraq2017-02-021-4/+3
|
* make tests greenAraq2016-12-181-2/+2
|
* Added deques module, deprecating queuesRuslan Mustakov2016-11-241-4/+4
|
* fixed regressionsAndreas Rumpf2016-03-291-13/+13
|
* make tests green againAndreas Rumpf2016-02-291-1/+1
|
* use 'using' instead of 'sig' keyword; cleans up new features a bitAndreas Rumpf2016-02-291-0/+39
|
* Fix a few deprecation warningsdef2016-01-254-8/+0
|
* JS: Corrected shift operators. Made casting between ints behave like C does.Yuriy Glukhov2016-01-221-6/+33
|
* Unsigned arith corrected for JSYuriy Glukhov2016-01-211-10/+24
|
* Closes: #3611Federico Ceratto2015-12-021-0/+12
|
* Merge branch 'mget' of https://github.com/def-/Nim into def--mgetAraq2015-10-131-2/+1
|\ | | | | | | | | | | | | | | | | | | Conflicts: lib/pure/collections/critbits.nim lib/pure/collections/tables.nim lib/pure/xmltree.nim lib/system/sets.nim tests/collections/ttables.nim tests/collections/ttablesref.nim
| * Rename mget to `[]`def2015-03-311-5/+4
| | | | | | | | | | | | | | | | | | - In sets, tables, strtabs, critbits, xmltree - This uses the new var parameter overloading - mget variants still exist, but are deprecated in favor of `[]` - Includes tests and fixed tests and usages of mget - The non-var `[]` now throws an exception instead of returning binary 0 or an empty string
* | add tfile/tline assertions for template expansion file/lineAman Gupta2015-10-061-5/+2
| |