practicalswift
abfecfde17
[gardening] if ([space]…[space]) → if (…), for(…) → for (…), while(…) → while (…), [[space]x, y[space]] → [x, y]
2016-04-04 16:22:11 +02:00
Mike Ferris
a3b880a9bf
<rdar://problem/25034414> Enable unit tests for test methods that throw once the open source CI is on 7.3
2016-04-02 07:26:55 -07:00
Dmitri Gribenko
a5ad2b802c
Remove a test that was migrated to StdlibCollectionUnittest
2016-04-02 02:50:12 -07:00
Dmitri Gribenko
6830edd210
New indexing model: fix validation-test/stdlib/Unicode.swift
2016-04-02 02:45:35 -07:00
Dmitri Gribenko
7d82037309
Slice tests: update expectations: creating out of bounds indices traps now
2016-04-01 14:14:56 -07:00
Dmitri Gribenko
37c4d70eb9
Split collection tests for better parallelism
2016-04-01 14:14:56 -07:00
Dmitri Gribenko
4066326c6c
Move GenerateSliceTests.py to utils/split-generated-tests, it will be used for other tests, too
2016-04-01 14:12:19 -07:00
Max Moiseev
171169b01f
[stdlib][swift-3-indexing-model] fixing Arrays tests
2016-04-01 14:12:17 -07:00
Dmitri Gribenko
5a12349e9c
Merge remote-tracking branch 'origin/master' into swift-3-indexing-model
2016-04-01 14:12:13 -07:00
Max Moiseev
2fd41315d2
[stdlib][swift-3-indexing-model] fixing SequenceType tests
2016-04-01 14:11:54 -07:00
Dmitri Gribenko
8fbe94fe01
New indexing model: make validation-test/stdlib/CollectionType.swift.gyb compile (but not pass yet)
2016-04-01 14:11:53 -07:00
Dmitri Gribenko
dcf919c2a2
New indexing model: fix validation-test/stdlib/Join.swift.gyb
2016-04-01 14:11:53 -07:00
Dmitri Gribenko
4750f3ba50
New indexing model: fix validation-test/stdlib/Index.swift.gyb
2016-04-01 14:11:52 -07:00
Dmitri Gribenko
208e34275f
New indexing model: fix test/1_stdlib/Collection.swift
2016-04-01 14:11:52 -07:00
Dmitri Gribenko
7e0661b31f
New indexing model: re-generate Slice* tests
2016-04-01 14:11:50 -07:00
Slava Pestov
49c54870c1
Serialization: Auto-linking recursively walks modules imported from -sil-serialize-all modules
2016-04-01 12:21:36 -07:00
Dmitri Gribenko
c5a11b0dc0
stdlib testing: make PRNG from SwiftPrivate deterministic
2016-03-30 19:35:23 -07:00
Han Sangjin
5c1854bfcf
stdlib: Portable random function
...
Changed rand32() implementation using a random engine in C++11 <random>.
2016-03-31 04:39:46 +09:00
Dmitri Gribenko
3e8ffae660
New indexing model: update the test generator for Slice* tests
2016-03-29 17:34:03 -07:00
Max Moiseev
c93fcb98ae
[stdlib][swift-3-indexing-model] fixing Concatenate tests
...
The 'reversed' tests are marked as XFAILing, because required methods
are not implemented on `ReversedCollection`.
2016-03-29 14:56:22 -07:00
Dave Abrahams
8e4f85277b
Merge remote-tracking branch 'refs/remotes/origin/master' into merge
2016-03-29 09:19:34 -07:00
Dave Abrahams
97baefffc7
Fix up use of limitedBy: in a test
2016-03-28 17:07:53 -07:00
Dave Abrahams
eda98cddde
Spelling error: s/Avance/Advance/
2016-03-28 17:07:53 -07:00
Dave Abrahams
cfcc21e395
Update successor/predecessor in validation tests
2016-03-28 17:07:52 -07:00
Dave Abrahams
393ca5d362
Warning suppression
2016-03-28 17:07:52 -07:00
Dave Abrahams
a5c3c63c3d
[stdlib] Indexing model: nix RangeOfStrideable
...
Instead, use CountableRange which is constrained to have a Strideable
Bound whose Stride conforms to Integer.
2016-03-28 17:06:09 -07:00
Dave Abrahams
a95cea9868
Merge branch 'swift-3-indexing-model' of github.com:apple/swift into swift-3-indexing-model
2016-03-28 13:35:30 -07:00
Dave Abrahams
da5c4036ac
func index(n: IndexDistance, stepsFrom i: Index)
...
M-x findr-query-replace
\<func advance(\([^(),]*\|[^(),]+([^()]*)[^(),]*\)\(,[
]*\)by \([^(),]*\|[^(),]+([^()]*)[^(),]*\)
func index(\3\2stepsFrom \1
2016-03-28 13:23:04 -07:00
Dave Abrahams
81d3e8ca83
limit: => limitedBy:, pt 2
...
M-x findr-query-replace
\<limit: \([^(),]*\|[^(),]+([^()]*)[^(),]*\))\( *\(?:[^ -]\|-[^>]\)\)
limitedBy: \1)\2
2016-03-28 13:12:02 -07:00
Ted Kremenek
3c988c7d25
Remove fixed seed, as apparently it causes a crash. Will investigate more.
2016-03-26 09:17:38 -07:00
Ted Kremenek
a2d775401e
Fix seed in Hashing.swift test.
2016-03-26 08:57:41 -07:00
Ted Kremenek
19b0a09f05
Try to *really* disable tests by moving them out of the same folder.
2016-03-26 08:20:37 -07:00
Ted Kremenek
dcc093f179
Try and disable these two tests for real.
2016-03-26 07:55:41 -07:00
Dave Abrahams
01127b32d5
index(n, stepsFrom: i)
...
M-x findr-query-replace
\<advance(\([^:]+?\),\([
]+\)by: *\([^(),]*\|[^(),]+([^()]*)[^(),]*\)\(,\(?:[
]+\)limit: *\(?:[^()]*\|[^()]+([^()]*)[^()]*\)\)?)
index(\3,\2stepsFrom: \1\4)
2016-03-25 17:54:39 -07:00
practicalswift
d00a5ef814
[gardening] Weekly gardening: typos, duplicate includes, header formatting, etc.
2016-03-24 22:41:10 +01:00
Max Moiseev
e7511620cf
[stdlib][swift-3-indexing-model] adding a tag to find and fix the skipped test later
2016-03-24 10:24:25 -07:00
Max Moiseev
d721a03d90
[stdlib][swift-3-indexing-model] fixing Index tests
2016-03-23 16:07:20 -07:00
Dave Abrahams
8d9e62b274
[stdlib] indexing model: rename next/previous
...
I'm not too satisfied with the names for the updating: versions, but
this is a start.
2016-03-22 17:13:54 -07:00
Max Moiseev
303ddac014
[stdlib][swift-3-indexing-model] fixing ExistentialCollection tests
2016-03-22 16:18:15 -07:00
Max Moiseev
6e76935b33
[stdlib][swift-3-indexing-model] fixing more tests
...
Algorithm and SequenceWrapperTest
2016-03-22 15:04:29 -07:00
Dmitri Gribenko
168e7e41a5
Merge pull request #1525 from PatrickPijnappel/utf8-rewrite
...
[stdlib] Rewrite UTF8 decoding
2016-03-22 14:24:11 -07:00
Max Moiseev
5713a6b608
[stdlib][swift-3-indexing-model] fixing stdlib/Generator tests
2016-03-22 12:42:33 -07:00
Max Moiseev
a43a46c8ba
[stdlib][swift-3-indexing-model] making Dictionary validation tests pass
2016-03-22 12:05:22 -07:00
Max Moiseev
cf92a80830
[stdlib][swift-3-indexing-model] making Set validation tests pass
2016-03-22 11:57:05 -07:00
Dmitri Gribenko
8f48d85d9e
Array tests: split Objective-C-independent tests into a new file
...
And also merge the small test/1_stdlib/ArrayCore.swift test into it.
2016-03-21 23:27:03 -07:00
Dmitri Gribenko
a6cd57222a
Merge remote-tracking branch 'origin/master' into swift-3-indexing-model
2016-03-21 14:41:15 -07:00
Arsen Gasparyan
9dbf4c99c8
Replace if true with do
2016-03-21 23:01:48 +03:00
Ted Kremenek
b6104b9cae
Disable "Hashing.swift" test since it fails with some non-zero probability even when the functionality is correct.
...
This is causing the the test to be largely ignored, and disrupts regular testing
(including in continuous integration) where an integration can fail just
because this tests fails for "expected" reasons.
We should re-enable the test once it is has a way to tolerate the
"expected" failure, perhaps using some notion of statistical confidence
to determine if the failure is real.
2016-03-19 21:27:44 -07:00
Dmitri Gribenko
8ef59b187d
Silence warnings in NewArray.swift.gyb
2016-03-19 18:07:58 -07:00
Dmitri Gribenko
3f448b3896
Move NewArray.swift.gyb to validation-test
...
It depends on checkRangeReplaceable, which was moved to
StdlibCollectionUnittest.
2016-03-19 18:07:50 -07:00