Commit Graph

7325 Commits

Author SHA1 Message Date
Araq
4705cf2308 cleaned up ospaths module 2015-10-12 16:55:23 +02:00
Araq
3e897a7c71 added setResult that simply takes a node 2015-10-12 16:55:22 +02:00
Dominik Picheta
6c61744171 Merge pull request #3433 from jyapayne/devel
Added useful procs to strutils for string testing.
2015-10-10 16:53:22 +01:00
Joey Payne
2d256a4489 Made strutils string test procs less redundant. 2015-10-10 09:13:00 -06:00
Joey Payne
ea9a1e26be Added tests for string test procs. 2015-10-10 08:55:19 -06:00
Joey Payne
e3bc27ac15 Changed alphanumeric check to "or" instead of "and". 2015-10-10 08:40:52 -06:00
Varriount
dc854f3480 Update readme.md 2015-10-10 06:52:13 -04:00
Varriount
2e7cc9e159 Update readme.md 2015-10-10 06:42:38 -04:00
Joey Payne
bb570de994 Added useful procs to strutils for string testing.
Added procs:

    isAlpha
    isAlphaNumeric
    isDigit
    isSpace
    isUpper
    isLower
2015-10-09 22:09:21 -06:00
Dominik Picheta
fec0894d59 Merge pull request #3425 from jlp765/hashes1
added hash procs for handling portions of strings/arrays/seqs.
2015-10-08 16:05:24 +01:00
Araq
48036fa3d9 fixes #635 2015-10-07 10:03:47 +02:00
Araq
dfaa63e805 osproc: fixes a long standing buffering bug on Windows 2015-10-07 10:03:46 +02:00
Araq
0a4d9aa954 fixes regression 2015-10-07 10:03:45 +02:00
Andreas Rumpf
050e4815d0 Merge pull request #3314 from haiodo/emscripten-support
Emscripten support
2015-10-07 09:31:47 +02:00
Andreas Rumpf
52342a11f6 Merge pull request #3380 from greyanubis/devel
Add proc to change an element tag and proc to insert xmlnode child
2015-10-07 09:26:01 +02:00
JamesP
07eaafca69 added hash procs for handling portions of strings/arrays/seqs.
added tests at bottom of file
changed some doco layout

Makes hashing iteratively through buffers faster when you
don't have to pass copied portions of the buffer to the
hash function
2015-10-07 13:03:31 +10:00
Andreas Rumpf
80ee72956a Merge pull request #3403 from tmm1/fix-test-failures
[WIP] Fix test failures in CI
2015-10-07 01:33:20 +02:00
Aman Gupta
391f2fc9b1 initialize new fields to empty values 2015-10-06 16:06:14 -07:00
Aman Gupta
7f5c49e204 copy nimrtl into lib, reset LD_LIBRARY_PATH after use 2015-10-06 15:54:12 -07:00
Aman Gupta
d9281adf8a run all tests 2015-10-06 15:53:55 -07:00
Aman Gupta
2240fd3f3f add tfile/tline assertions for template expansion file/line 2015-10-06 15:47:07 -07:00
Aman Gupta
eea8d604d0 Merge remote-tracking branch 'origin/devel' into fix-test-failures 2015-10-06 11:06:41 -07:00
Araq
2e413d3186 fixes #3383 2015-10-06 16:15:51 +02:00
Araq
8507f95d68 fixes #2637 2015-10-06 15:51:00 +02:00
Araq
732bdd54a0 added critbits.inc proc 2015-10-06 15:50:59 +02:00
Araq
8e9c0db66d strutils: wrap too long lines 2015-10-06 15:50:58 +02:00
Andreas Rumpf
8f9438d29a Merge pull request #3421 from jlp765/strtab1
fix #3416 strtabs clear() and []=
2015-10-06 14:15:50 +02:00
JamesP
73821ad1c4 add assert test to end of module 2015-10-06 16:36:32 +10:00
Andrey Sobolev
d1b67cb9bb Merge remote-tracking branch 'nim-lang/devel' into emscripten-support 2015-10-06 10:55:52 +06:00
Dominik Picheta
0a8a2070d0 Merge pull request #3420 from jlp765/manual1
fix #3418 add example on openArray to types.txt
2015-10-05 17:29:33 +01:00
JamesP
87a6268d3c bug fix #3416 add wrapper around []= to account for
changes in StringTableRef disabling inc of counter
2015-10-05 15:16:43 +10:00
JamesP
aead71cd67 fix #3418 add example on openArray to types.txt 2015-10-05 10:42:04 +10:00
Dominik Picheta
6587f63672 Merge pull request #3415 from jlp765/rationals2
rationals add toRational(float) conversion
2015-10-04 22:17:45 +01:00
Dominik Picheta
8f2b15d170 Merge pull request #3395 from nanoant/patch/rename-rawsockets-to-nativesockets
Rename rawsockets module to nativesockets
2015-10-04 22:12:32 +01:00
JamesP
77d4788655 Add toRational(float) conversion from any float to closest
approx for specified precision
2015-10-04 15:58:02 +10:00
Araq
a2c040e3bd added undocumented exportNims pragma for Nimscript support 2015-10-03 23:19:15 +02:00
Araq
28b1340f94 fixes 'line too long' warning 2015-10-03 23:19:14 +02:00
Dominik Picheta
6bc29ccf4c Merge pull request #3400 from nanoant/patch/generate-install.sh-during-bootstrap
Generate install.sh during bootstrap
2015-10-03 19:30:34 +01:00
Adam Strzelecki
6cc9853935 bootstrap: Generate final install.sh during build
This solves problem where bootstrap was simply copying ./install.sh.template
into ./install.sh. Then first call of ./install.sh was calling ./koch install
that was running extra compilation and overwriting ./install.sh with new
content.

This was overcomplicated, and also caused first `sudo ./install.sh DIR` to run
compilation under root account, leaving root owned files in working directory.

Now bootstrap calls `./koch geninstall` that just generates ./install.sh
without calling it. This ./install.sh is FINAL one, and running it does not
generate any files aside passed DIR. This makes whole process simpler.
2015-10-03 19:51:17 +02:00
Adam Strzelecki
6655537c66 koch: Add geninstall generating just ./install.sh
In opposite to `install` which generates ./install.sh and then calls it.
2015-10-03 19:51:16 +02:00
Adam Strzelecki
be991ed413 Rename rawsockets module to nativesockets
This change was done to avoid confusion with TCP/IP raw sockets. Native sockets
module represents handling native system low level socket API in general and is
not just limited anyhow to TCP/IP raw sockets.

A stub lib/deprecated/pure/rawsockets.nim module has been added as
compatibility layer for old code using rawsockets, so this change will not
break existing code.
2015-10-03 19:45:41 +02:00
Dominik Picheta
3fe5731777 Merge pull request #3389 from nanoant/patch/separate-deprecated-modules
Patch/separate deprecated modules
2015-10-03 14:51:43 +01:00
Dominik Picheta
a35ba105f7 Merge pull request #3393 from nanoant/patch/fix-freebsd-getaddrinfo
rawsockets: Fix getaddrinfo on FreeBSD
2015-10-03 14:50:50 +01:00
Aman Gupta
a01fd5e93f fail CI when tests fail 2015-10-02 19:02:01 -07:00
Aman Gupta
b33d97621d only compile coro.nim by avoiding "when isMainModule" string match in
testament/tester

FAIL: coro.nim
Test "lib/pure/coro.nim" in category "lib"
Failure: reOutputsDiffer
Expected:

Gotten:
c1
c2
c2
c1
c2
c1
c2
c1
c1 exits
c2 exits
done 1100220033
2015-10-02 18:56:57 -07:00
Aman Gupta
2fbdf9320c fix float comparision failure in math tests
FAIL: math.nim
Test "lib/pure/math.nim" in category "lib"
Failure: reExitcodesDiffer
Expected:
exitcode: 0
Gotten:
exitcode: 1
Output:
Traceback (most recent call last)
math.nim(478)            math
system.nim(3343)         failedAssertImpl
system.nim(3335)         raiseAssert
system.nim(2531)         sysFatal
Error: unhandled exception: tgamma(5.0'f64) == 24.0'f64  [AssertionError]
2015-10-02 18:34:04 -07:00
Aman Gupta
5b9465acf6 fix test failures due to import errors 2015-10-02 18:20:51 -07:00
Aman Gupta
1639de0a4e remove trailing whitespace requirement from subexes test file 2015-10-02 18:08:23 -07:00
Aman Gupta
1652fd0431 install nimble and zip package 2015-10-02 17:41:37 -07:00
Aman Gupta
6e7759734e show stderr w/ reExitcodesDiffer 2015-10-02 17:38:48 -07:00