Commit Graph

72 Commits

Author SHA1 Message Date
Araq
562d185cb7 cleanup tests; don't use non-working 'msg' spec field 2018-11-23 13:16:45 +01:00
Arne Döring
be553e691b more eyewash 2018-11-23 11:58:31 +01:00
Arne Döring
161e14829a disable tio.nim, it just causes problems 2018-11-23 11:58:30 +01:00
Arne Döring
bfcf82c7e5 maybe this time? 2018-11-23 11:58:29 +01:00
Arne Döring
d60615583f hopefully this time the tests will compile on the server 2018-11-23 11:58:29 +01:00
Arne Döring
e012eb1001 updated tests to be executed 2018-11-23 11:58:28 +01:00
Arne Döring
031bfdec6f make run the default action of a test in tester 2018-11-23 11:58:28 +01:00
Ștefan Talpalaru
f8fa94cb20 fix segfault when calling shallow() on an empty string (#9782) [backport]
shallow() casts its string argument to a seq and then tries to access
its fields. Guess what happens when that string is nil, which seems to
be the representation of an empty string (both the default value and an
explicitly assigned "").

Segfault encountered when running "ntags -R ." on a large project. The relevant line:
a1c62c38e5/ntags.nim (lines-125)
2018-11-22 14:47:27 +01:00
c-blake
1b3725e395 Add toOpenArray[T](ptr UncheckedArray[T]) for clarity. (#9316)
* Add `toOpenArray[T](ptr UncheckedArray[T])` for clarity.  `ptr array[0,T]`
for some unchecked type already works but A) `UncheckedArray` seems to be
the intended future way for this kind of access, and B) essentially all use
cases will have a `ptr` for that kind of array source and this call signature
lets callers drop the trailing `[]` corresponding to that `ptr` deref.
This PR relates to issue https://github.com/nim-lang/Nim/issues/9001 .

* Add a test for toOpenArray() for UncheckedArray[T]s.
2018-10-12 17:40:07 +02:00
Araq
d48e964950 fixes #9281 2018-10-11 19:52:48 +02:00
Araq
fa338768a3 fixes #8847 2018-09-03 08:37:32 +02:00
Andreas Rumpf
f2263cd129 make tests green again 2018-08-18 18:52:39 +02:00
Araq
420ed0596b fixes more nil handling regressions 2018-08-13 17:27:44 +02:00
Araq
de263a43c6 deprecate isNil for strings and seqs 2018-08-08 11:21:56 +02:00
jcosborn
8f4c5a8955 fixed #7894 (#8496)
make system tests run properly
2018-08-01 10:57:35 +02:00
Andreas Rumpf
2e3f477957 VM: accessing the string terminator is not allowed anymore; cleanup tests/system/tostring.nim 2018-07-17 18:22:20 +02:00
Dmitry Atamanov
a6c3bbf01a Add proc toOpenArray[byte] for strings (#7820) 2018-07-07 21:03:22 +02:00
nitely
7297195f9f test negative range array 2018-06-06 02:22:33 -03:00
nitely
ba39f359aa check bounds instead of index 2018-06-05 20:22:27 -03:00
data-man
b4626a220b Added $ for openarrays. Fixes #7940. 2018-06-01 21:28:23 +03:00
Andreas Rumpf
f64f9e50cc correct comparisons for nil strings/seqs 2018-04-28 15:13:44 +02:00
Andreas Rumpf
7c538b26ad nil in string concats does not produce crashes anymore 2018-04-27 21:33:05 +02:00
Araq
1d9343080d added toOpenArray builtin for zero-copy slices; syntax sugar yet to come 2018-03-24 20:26:34 +01:00
jcosborn
e39f2a9283 fix allocator corruption for large sizes (#7338)
* fix allocator corruption for large sizes
* allow large chunks to coalesce and added test case
* use correct constants in MaxBigChunkSize
2018-03-17 23:59:04 +01:00
pqflx3
8d8df5807b Fixes #7121 (#7148)
* Replace ftell and fseek with (windows) _ftelli64, _fseeki64 and (posix) ftello, fseeko

* disable large file test
2018-01-31 16:38:37 +01:00
Fabian Keller
6df6ec27ec Improved collection-to-string behavior (#6825) 2017-12-14 14:02:13 +01:00
Andreas Rumpf
46275f6b8f fixes #6710 2017-11-08 15:45:26 +01:00
Araq
3174cfe55c make tests green again 2017-11-01 00:20:40 +01:00
Fabian Keller
badba83d38 Implementation of high/low for SomeReal (#6570) 2017-10-30 17:21:44 +01:00
Andreas Rumpf
55cb959a68 make tests green again; closes #5861 2017-10-10 09:18:31 +02:00
Arne Döring
608cc18178 reverted genEcho 2017-08-08 13:58:50 +02:00
Arne Döring
54808ab12f don't filter '\0' characters in string generation 2017-08-07 18:21:21 +02:00
Arne Döring
11914a23be prevent null characters in $ on collections of char 2017-07-24 23:55:30 +02:00
Arne Döring
a6e6b05565 made toString test assert based 2017-07-24 23:23:57 +02:00
Arne Döring
ddea990a70 removed newString proc again, reverted some unnecesary changes 2017-07-24 23:21:51 +02:00
Arne Döring
1f7fc7f279 arrays can now be printed 2017-07-24 23:21:51 +02:00
Brandon Pickering
c98a8f3701 Handle different enum sizes in reprAux (#5207) 2017-01-11 05:54:04 +01:00
Araq
39ca8b8c8e fixes #4818 2016-12-18 23:11:53 +01:00
Andreas Rumpf
2316c71e09 reverted deepcopy fix for now 2016-11-24 10:52:33 +01:00
Araq
074f276c8a disallow recursive module dependencies 2016-11-23 23:23:31 +01:00
Andreas Rumpf
3eba4b510f added test case for deepcopy 2016-11-19 09:22:29 +01:00
Dominik Picheta
371470e73f Fixes #2889. Merges *tostring tests in tests/system. 2015-09-23 00:04:31 +01: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
2b80d75aa2 fixes #2420; negative indexing for slicing is obsolete (breaking change!) 2015-03-28 00:15:04 +01:00
Araq
a30becf1b5 fixes #2395 2015-03-24 23:07:18 +01:00
Araq
62e454f41b asynchttpserver compiles again; made some tests green 2014-08-13 01:16:18 +02:00
Andreas Rumpf
396b5619fc Merge pull request #1273 from katlogic/devel
Second stab at `$`(float)
2014-07-15 22:01:58 +02:00
katlogic
9532951cfc Tests for $(float) 2014-06-15 01:53:09 +02:00
Araq
d2dbcf2fa4 progress with futures 2014-05-23 08:57:16 +02:00
Araq
6195dbe491 initial non-compiling version of 'parallel' 2014-05-12 11:12:37 +02:00