summary refs log tree commit diff stats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Pegs AST read access (#8050)gemath2018-06-191-0/+78
| | | | | | | | | | | | * Make PEG AST nodes readable from outside the module. * Added a test module for the pegs stdlib module. * Edited changelog. * Renamed ``sons`` iterator to ``items``, added ``pairs``, inlined both. * Updated entry and moved it to the right category.
* Merge pull request #7771 from nim-lang/nim-in-action-fixesAndreas Rumpf2018-06-1911-1/+642
|\ | | | | Higher Nim in Action coverage plus regression fix.
| * Workaround VM bug in strutilsDominik Picheta2018-06-171-2/+2
| |
| * Adds smaller code samples from Chapters 1-3 to the tester.Dominik Picheta2018-06-1711-1/+642
| |
* | testament: minor code formating changeAndreas Rumpf2018-06-171-1/+1
|/
* Merge pull request #8039 from yglukhov/proc-pragmasAndreas Rumpf2018-06-161-6/+69
|\ | | | | Fixed stacktrace/linetrace proc pragmas when appended by macro pragma
| * Added more tests to toverflwYuriy Glukhov2018-06-151-6/+69
| |
* | Add MemMapFileStream. Fixes in memFiles. (#7944)Dmitry Atamanov2018-06-142-1/+55
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add MemMapFileStream * Added tests * Fixed bug in memfiles (zero index for string) * Added flush to changelog * Attempt to fix Win's nuances * Fix attempt to fix * Continue... * And again... * Reworked tests (all for win on Win) * Fixes in flush (Win) * Replace fn vars to consts * Added the attempts parameter to the flush * Replace while to for * Move to memfiles * Use Natural instead of uint * Better error messages for append mode. Handle specific cases.
* Add parse bin int, fixes #8018 (#8020)Vindaar2018-06-131-1/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * clarify `parseHexInt`, `parseOctInt` docstring and exception msgs * add `parseBinInt` based on `parseutil.parseBin` implementation Adds a `parseBinInt`, which parses a binary integer string and returns it as an integer. This is based on the implementation of `parseutil.parseBin`, removing the unnecessary parts. * add tests for all `parse(Hex|Oct|Bin)Int` procs * replace `parse*Int` proc impls by call to parseutil procs Replaces the `parse(Hex|Oct|Bin)Int` procedure implementation by calls to the `parseutil` procs, which receive a mutable argument. Has the main advantage that the empty string as well as a "prefix only" string, e.g. "0x" counts as an invalid integer. Also moves the `parseOctInt` proc further up in the file so that all `parse` procs are below one another. * replace `var L` by `let L` in `parse` procs There's no reason for the usage of `var` here. * add `maxLen` optional arg for `parseutil.parse(Oct|Bin)` Plus small change to test cases. * update changelog about `parse*Int` procs * fix `rejectParse` template in `tstrutils` * make sure only `s.len` chars are parsed, if `maxLen+start` > s.len Fixes a previous bug in `parseHex` (and now affected `parseOct` and `parseBin`), which allowed to set `start + maxLen` to be larger than the strings length. This resulted in an out of bounds access. * move `parse*Int` proc change to breaking changes, add double `
* fix #5930Arne Döring2018-06-131-2/+2
|
* Merge pull request #8019 from yglukhov/proc-stacktraceAndreas Rumpf2018-06-121-0/+18
|\ | | | | Allow stacktrace and linetrace pragmas on procs
| * Allow stacktrace and linetrace pragmas on procsYuriy Glukhov2018-06-121-0/+18
| |
* | Merge pull request #7981 from cooldome/Fix_-7980Andreas Rumpf2018-06-121-0/+27
|\ \ | |/ |/| Fixes 7980
| * fixes 7980cooldome2018-06-061-0/+27
| |
* | Merge pull request #8014 from yglukhov/fix-6803Andreas Rumpf2018-06-111-6/+118
|\ \ | | | | | | Fixes #6803
| * | Fixes #6803Yuriy Glukhov2018-06-111-6/+118
| | |
* | | Correct field lookup in concept typesLemonBoy2018-06-121-0/+27
|/ / | | | | | | Fixes #6770
* | fixes yet another merge conflictAraq2018-06-111-18/+0
|\ \
| * \ Merge pull request #8009 from yglukhov/remove-oldIterTransfAndreas Rumpf2018-06-111-18/+0
| |\ \ | | | | | | | | Removed oldIterTranf feature
| | * | Removed oldIterTranf featureYuriy Glukhov2018-06-101-18/+0
| | | |
* | | | fixes merge conflictAraq2018-06-111-0/+46
|\| | |
| * | | Merge pull request #8005 from Vindaar/fixes-7997Andreas Rumpf2018-06-111-0/+46
| |\ \ \ | | |/ / | |/| | fix #7997
| | * | add test case for fix to #7997Vindaar2018-06-101-0/+46
| | | |
* | | | fixes merge conflictAndreas Rumpf2018-06-113-0/+42
|\| | |
| * | | fix #7653Zahary Karadjov2018-06-102-1/+19
| |/ /
| * | Fix type inference with static literals.LemonBoy2018-06-101-0/+12
| | | | | | | | | | | | Fixes #3977
| * | Merge pull request #7992 from yglukhov/fromSockAddr-compile-errorAndreas Rumpf2018-06-081-0/+12
| |\ \ | | | | | | | | Fixed compilation error when Sockaddr_in4 or Sockaddr_in6 passed to fromSockAddr
| | * | Fixed compilation error when Sockaddr_in4 or Sockaddr_in6 passed to fromSockAddrYuriy Glukhov2018-06-071-0/+12
| | | |
* | | | make tests green againAndreas Rumpf2018-06-111-3/+3
| | | |
* | | | fixex merge conflictsAraq2018-06-0819-67/+1008
|\| | |
| * | | Fixes #7985Yuriy Glukhov2018-06-071-0/+19
| |/ /
| * | Updated tests for CritBitTree $data-man2018-06-071-3/+3
| | |
| * | Cleanup copypaste leftoverYuriy Glukhov2018-06-071-4/+0
| | |
| * | Fixed yield in nkBlockExprYuriy Glukhov2018-06-071-0/+15
| |/
| * Merge pull request #7550 from jangko/fix4799Andreas Rumpf2018-06-064-0/+305
| |\ | | | | | | fixes #4799, varargs now can accept polymorphic types
| | * fixed wrong testandri lim2018-06-061-4/+4
| | |
| | * combine/reduce testandri lim2018-06-057-105/+87
| | |
| | * fix test case outputandri lim2018-06-051-1/+1
| | |
| | * add more test to 4799andri lim2018-06-058-0/+323
| | |
| * | Fixed testsYuriy Glukhov2018-06-063-8/+24
| | |
| * | Fixed yield in dotExpr and nkOfBranch lowering. Closes #7969.Yuriy Glukhov2018-06-061-0/+24
| | |
| * | Merge pull request #7907 from GULPF/lexer-unicode-fixAndreas Rumpf2018-06-063-20/+27
| |\ \ | | | | | | | | Lexer fix for multi byte characters
| | * | Combine some of the lexer tests into a single fileOscar Nihlgård2018-06-054-31/+27
| | | |
| | * | Multi byte characters should not be treated as part of an operatorOscar Nihlgård2018-06-031-0/+11
| | | |
| * | | Merge pull request #7967 from nitely/empty_openarray_7904Andreas Rumpf2018-06-061-0/+39
| |\ \ \ | | | | | | | | | | support empty toOpenArray
| | * | | test negative range arraynitely2018-06-061-0/+14
| | | | |
| | * | | check bounds instead of indexnitely2018-06-051-0/+25
| | | | |
| * | | | Merge pull request #7770 from yglukhov/yield-in-tryAndreas Rumpf2018-06-054-10/+391
| |\ \ \ \ | | |/ / / | |/| | | Yield in try
| | * | | Merge branch 'devel' into yield-in-tryYuriy Glukhov2018-05-1511-17/+17
| | |\ \ \
| | * | | | Review comments addressed. More thorough line info tracking.Yuriy Glukhov2018-05-101-2/+2
| | | | | |