practicalswift
c760f6dfbf
[gardening] Add whitespace: "foo,bar" → "foo, bar"
2016-04-12 22:31:46 +02:00
Dmitri Gribenko
f4987d02ec
stdlib: new indexing model: Forward more methods in AnyCollection
2016-04-08 20:29:10 -07:00
Dmitri Gribenko
81fa3ee1ad
StdlibCollectionUnittest: logging collections: update property names to match actual Collection API
2016-04-08 17:40:39 -07:00
Trent Nadeau
f96ad263a8
Added @discardableResult attr to mutating functions
2016-04-07 23:27:38 +00:00
Dmitri Gribenko
79c75f0c1a
StdlibCollectionUnittest: simplify code
2016-04-06 23:31:31 -07:00
Dmitri Gribenko
6131df64d2
stdlib: make _preprocessingPass rethrowing and add tests
2016-04-06 23:22:26 -07:00
Dmitri Gribenko
55fa27008f
StdlibCollectionUnittest: remove dead code
...
None of the minimal or defaulted collections raise expectation failures
when indexed out of bounds. This idea seemed to be good on the surface,
but turned out not that nice or useful in practice.
2016-04-06 22:31:41 -07:00
Manav Gabhawala
7928140f79
[SE-0046] Implements consistent function parameter labels by discarding extraneous parameter names and adding _ where necessary
2016-04-06 20:21:58 -04:00
Dmitri Gribenko
9c392bfdcb
StdlibCollectionUnittest: generalize MutableCollection.SubSequence.subscript(_: Range)/Set tests
2016-04-04 18:38:11 -07:00
Dmitri Gribenko
6985b958fd
Merge remote-tracking branch 'origin/master' into swift-3-indexing-model
2016-04-04 11:42:17 -07:00
Dmitri Gribenko
b34c419a5e
StdlibCollectionUnittest: implement fast index(_:stepsFrom:) entry points in minimal collections
2016-04-04 10:46:57 -07:00
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
Dmitri Gribenko
ffc0cab597
StdlibCollectionUnittest: remove two slow tests
2016-04-01 23:05:55 -07:00
Dmitri Gribenko
a53fb16591
StdlibCollectionUnittest: use parameterized tests for out-of-range subscript tests
...
This change decreases the testing time a little bit.
2016-04-01 14:14:58 -07:00
Dmitri Gribenko
8891f437c9
StdlibCollectionUnittest: remove some redundant range checks to speed up tests
2016-04-01 14:14:57 -07:00
Dmitri Gribenko
69e921a36f
StdlibUnittest: implement slice subscript writeback in minimal collections
2016-04-01 14:14:57 -07:00
Dmitri Gribenko
f784fd9a08
StdlibUnittest: fix infinite recursion in range checking in minimal collections
2016-04-01 14:14:57 -07:00
Dmitri Gribenko
067b244c3f
StdlibCollectionUnittest: stricter range checking in minimal collections
2016-04-01 14:12:19 -07:00
Dmitri Gribenko
2b9737cc9c
StdlibCollectionUnittest: implement out-of-range tests for slicing subscript
2016-04-01 14:12:18 -07:00
Dmitri Gribenko
6477740cda
StdlibCollectionUnittest: share data sets between out-of-bounds and slicing tests
2016-04-01 14:12:18 -07:00
Max Moiseev
171169b01f
[stdlib][swift-3-indexing-model] fixing Arrays tests
2016-04-01 14:12:17 -07:00
Dmitri Gribenko
5b2527ebb1
stdlib: make _writeBackMutableSlice() callable from StdlibCollectionUnittest
2016-04-01 14:12:16 -07:00
Dmitri Gribenko
340f464b6d
StdlibCollectionUnittest: rename methods for consistency
2016-04-01 14:12:15 -07:00
Max Moiseev
97f06a09a7
[stdlib][swift-3-indexing-model] removing Strideable requirement for checkBidirectionalCollection
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
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
bd9e855e5b
StdlibCollectionUnittest: make it work with new slice types, and add more test cases
2016-03-29 17:22:52 -07:00
Dmitri Gribenko
f065fde8e8
New indexing model: StdlibCollectionUnittest: rename methods for consistency
2016-03-29 16:35:32 -07:00
Max Moiseev
b30a550801
[stdlib][swift-3-indexing-model] Fixing checkCollection functions
2016-03-29 14:56:21 -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
Dave Abrahams
4d651f8fc0
limit: => limitedBy:, pt 1
...
M-x findr-query-replace
\(,[
]*\)limit: \([^(),]*\|[^(),]+([^()]*)[^(),]*\)) ->
\1limitedBy limit: \2) ->
2016-03-28 13:03:59 -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
Dave Abrahams
11259d1d14
[stdlib] indexing model: rename in-place indexing
...
This time, choose something that's at least compliant with the API
guidelines.
2016-03-23 17:16:20 -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
Dave Abrahams
c8f5047f66
[stdlib] indexing model: Workaround for compiler bug
...
"type circularly references itself"
2016-03-21 13:52:08 -07:00
Dmitri Gribenko
aaa486cc7b
New indexing model: fix most compilation issues in StdlibCollectionUnittest
...
We are still hitting what looks like a compiler bug:
error: type alias 'SubSequence' circularly references itself
which is emitted for every minimal collection type.
2016-03-18 23:20:57 -07:00
Dmitri Gribenko
9dd485eb89
New indexing model: WIP on updating StdlibCollectionUnittest
2016-03-18 23:03:01 -07:00
Dave Abrahams
17f841430c
Merge Range work
2016-03-16 15:59:39 -07:00
Dave Abrahams
f493b54e44
[stdlib] indexing model: Interval/Range merge
...
This is step 1; we still need to introduce ClosedRange.
2016-03-16 15:59:10 -07:00
Dmitri Gribenko
98207e2c12
StdlibCollectionUnittest: add a FIXME
2016-03-15 20:55:20 -07:00
Dmitri Gribenko
add96a026d
New indexing model: make LoggingWrappers.swift.gyb compile
2016-03-15 11:33:54 -07:00
Shawn Erickson
643d7980f7
New indexing model: WIP updating CheckCollectionType.swift, not compiler verified
2016-03-10 14:37:29 -08:00
Max Moiseev
7fe6916bf6
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-03-07 12:10:47 -08:00
Ted Kremenek
90ce8daf0b
Merge pull request #1552 from hughbe/stdlib-newlines
...
[gardening] Remove double new lines from stdlib files
2016-03-05 14:40:04 -08:00
Hugh Bellamy
c1b25bb32f
[gardening] Remove double new lines from stdlib files
2016-03-05 15:44:54 +00:00
Max Moiseev
e48f452a2e
Merge remote-tracking branch 'origin/swift-3-api-guidelines' into swift-3-api-guidelines
2016-02-29 12:15:33 -08:00
Max Moiseev
a49dab6bf8
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-02-29 12:08:52 -08:00
Daniel Duan
2bc78b8c09
[stdlib] update for 'inout' adjustment (SE-0031)
2016-02-26 12:02:29 -08:00