Araq
d8b0edc323
Merge branch 'mget' of https://github.com/def-/Nim into def--mget
...
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
2015-10-13 00:22:27 +02:00
Peter Mora
b284ace099
fixing unittest
2015-10-06 08:24:43 +02:00
Araq
5a003532d0
fixes #2473 ; cleanup of some tests
2015-09-30 21:13:13 +02:00
Dominik Picheta
0370dff8e0
Merge pull request #3378 from jlp765/streamsEx
...
Streams examples & default newFileStream() file mode
2015-09-27 13:46:04 +01:00
JamesP
8b230ec085
minor fix - remove comments from discard section
...
so koch test doesn't complain
2015-09-27 16:21:47 +10:00
JamesP
772c25bfe8
fix discard output: section
2015-09-27 15:49:40 +10:00
JamesP
e0707797a5
add test for newFileStream() opening a missing file
2015-09-26 08:34:59 +10:00
JamesP
63c35a98f4
add memfiles test of create/read/write data
2015-09-24 09:43:31 +10:00
JamesP
48932dbf98
improve discard text
2015-09-24 09:34:44 +10:00
JamesP
7490667578
add memfiles test that closing a closed memFile is ignored (and raises no [OSError])
2015-09-24 09:23:48 +10:00
Adam Strzelecki
e80465dacf
tests: Trim .nim files trailing whitespace
...
via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
2015-09-04 23:04:32 +02:00
Araq
dd2a0ec431
cleaned up twchartoutf8 test
2015-08-21 21:40:24 +02:00
Andreas Rumpf
47919e219b
Merge pull request #3205 from fenekku/unittest-work-2
...
other unittest pull-request
2015-08-21 21:30:10 +02:00
jangko
7c757599f1
fixed UTF-16 to UTF-8 conversion in widestrs.nim
...
the source of problem for issue #3228
also add test for entire range of valid UTF-16
and test for invalid UTF-16 sequence
2015-08-21 10:43:31 +07:00
jangko
c103eddc73
fixed UTF-16 to UTF-8 conversion in widestrs.nim
...
the source of problem for issue #3228
also add test for entire range of valid UTF-16
2015-08-20 20:30:14 +07:00
Dominik Picheta
ad245dbd77
Merge pull request #3131 from zachaysan/devel
...
Create chomp proc and tests
2015-08-13 22:31:30 +01:00
fenekku
c62698b296
make testSetupIMPL and testTeardownIMPL non-public
2015-08-12 10:30:36 -04:00
Charles Blake
9c3c48a6d0
Merge ../Nim into devel
2015-08-09 06:58:36 -04:00
Charles Blake
5497c964d0
Move tests to stdlib.
2015-08-03 12:35:57 -04:00
Nycto
eac484167c
Fix multiple requires in a test
2015-08-01 18:48:41 -07:00
Zach Aysan
94149f7a48
Update tests to proposed changes
2015-07-21 15:04:10 -04:00
Zach Aysan
d28862422b
Add tests for chomp
2015-07-17 16:26:10 -04:00
fenekku
464ec61e9c
document unittest.nim + code agreement
2015-07-09 13:22:26 -04:00
Dominik Picheta
e74012b396
Merge pull request #2961 from Perelandric/rename_writeLn
...
Renamed writeln to writeLine. Issue #2958
2015-06-20 16:25:37 +01:00
Dominik Picheta
25a5eaf722
Added test file for #2813 .
2015-06-20 11:37:29 +01:00
patrick dw
69e15ac32f
renamed writeln to writeLine in tests
2015-06-19 01:34:34 -05:00
Flaviu Tamas
90292754f5
Fix flaviut/nre#20
2015-06-18 12:44:12 -04:00
Andreas Rumpf
d31fe7666a
Merge pull request #2818 from flaviut/add-nre
...
Add nre to stdlib
2015-06-12 00:13:19 +02:00
Flaviu Tamas
9db6070d73
Fix nre tests
2015-06-07 13:12:19 -04:00
Flaviu Tamas
90ed34db72
Merge branch 'devel' of https://github.com/Araq/Nim into add-nre
...
* 'devel' of https://github.com/Araq/Nim :
Fix #964 , fix #1384
Don't inspect typedescs
2015-06-07 13:12:18 -04:00
Oscar Campbell
071ccf3d02
Add "safety compilation". Improved, fixed messages
...
- node ext searcher also looks for "iojs" if no node(js?) found.
- koch ensures the local work dir compiler is freshly compiled before executing the tests.
- the tester can only run in the repo dir - now the compiler and libs used are also explicitly the local dirs - so no confusion from system wide pathing ("sufficiently sandboxed").
- fixed expectations in tmitems.nim test to match changes in json mod.
- re-layouted the columns / row printing slightly, making test fails pop out more, and everything "normal" layed back.
2015-06-04 07:33:27 +02:00
Flaviu Tamas
0527e1f9fe
Rearrange nre files
2015-05-26 19:14:04 -04:00
Flaviu Tamas
3daef85d6e
Fix #964 , fix #1384
...
Doesn't actually fix those bugs, but they can no longer be reproduced. Test
cases have been added.
2015-05-26 18:41:28 -04:00
Flaviu Tamas
c9616897f0
Don't inspect typedescs
2015-05-26 18:40:43 -04:00
Araq
d3fc6e1f28
marshalling can be done at compile-time
2015-04-25 23:17:00 +02:00
def
08575e2aec
Add test case for infinite loop in RE
2015-04-09 17:28:26 +02:00
def
63f9385327
Rename mget to []
...
- 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
2015-03-31 00:32:39 +02:00
Araq
3aad16e337
fixes #1845 , fixes #2224
2015-03-12 11:08:03 +01:00
def
69e2b61c0a
Fix tests a bit more
2015-03-10 15:34:15 +01:00
Dominik Picheta
3ea3aa633d
Merge pull request #2279 from nathan-hoad/sni-support-for-openssl
...
Add SNI support to client and server sockets.
2015-03-10 11:08:21 +00:00
Nathan Hoad
5978625c12
Make IP address checking more obvious, and add tests for the net module.
2015-03-07 12:37:52 +11:00
Hans Raaf
3546ff8819
Replaced repeatStr() and repeatChar() with more natural versions.
2015-03-03 16:37:54 +01:00
Araq
24ae0c387f
some love for the testsuite; fixed regressions
2015-03-01 21:41:21 +01:00
Hans Raaf
a471b3c87f
Added test for toHex().
2015-02-18 19:02:38 +01:00
Araq
10335fd726
fixed minor bugs; cleaned up tests
2015-02-12 14:56:56 +01:00
Simon Hafner
6f1152c66b
apparently the json spacing changed
2015-02-08 11:01:09 -06:00
def
e0ae9f5248
Clean up tests/stdlib
...
2 tests still fail:
- tircbot would need a benign pragma because of the locks
- tgetfileinfo uses os.getFileInfo() on nil, which segfaults instead of
throwing an exception as the tester expects
2015-02-04 20:24:01 +01:00
def
03db4d2930
Adapt the tester for permutations
...
Uses the bool return value now
2015-02-02 08:06:19 +01:00
def
1ae4d535cd
Add nextPermutation and prevPermutation
...
Fits best into algorithm module I guess. These are the most general
ways, an iterator could easily be implemented from this. Same algorithm
as in Rust: http://web.mit.edu/rust-lang_v0.11/doc/src/collections/var/tmp/alexp/rust/rust-0.11.0/src/libcollections/slice.rs.html#644
2015-02-01 18:29:01 +01:00
def
11a5a4a9a6
Fix SinglyLinkedRing in lists module
...
- SinglyLinkedRing's prepend was broken
- needed a tail so that prepend can work properly
- now append works as well, so I added it too
- simple testcase added as well
2015-02-01 03:04:18 +01:00