Dave Abrahams
5f0b33f04d
[stdlibunittest] _Element => Element
2017-05-31 15:56:57 -07:00
Ben Cohen
3bdada1773
Merge pull request #6506 from airspeedswift/im-not-warning-you-again
...
[stdlib] Squash various warnings
2017-01-06 16:51:06 -08:00
practicalswift
6d1ae2a39c
[gardening] 2016 → 2017
2017-01-06 16:41:22 +01:00
ben-cohen
ce0d713cd6
fixed where clauses, Optional-as-Any and unused vars
2016-12-29 07:58:12 -08:00
practicalswift
797b80765f
[gardening] Use the correct base URL ( https://swift.org ) in references to the Swift website
...
Remove all references to the old non-TLS enabled base URL (http://swift.org )
2016-11-20 17:36:03 +01:00
Robert Widmann
14dc86cf15
Polish off uses of dynamicType in codebase
2016-07-29 16:58:40 -07:00
Austin Zheng
fa6c028edf
Adding tests for replaceSubrange overloads for range types ( #2774 )
2016-06-07 14:21:30 -07:00
swift-ci
7c98b492e8
Merge pull request #2841 from ahoppen/SR-1236-tests-update
2016-06-02 11:38:34 -07:00
Alex Hoppen
2108a235df
[Tests] Update existing tests for the upcoming implementation of SE-0036
2016-06-02 17:50:55 +02:00
rintaro ishizaki
6401324993
[stdlib] Apply tail style "where" clause to stdlib/{internal,private}
2016-06-02 12:01:21 +09:00
Dmitri Gribenko
d591f9cf7a
stdlib: remove most uses of @warn_unused_result, which does nothing now
...
I kept the one on sorted(), because that one requires a less trivial
change.
2016-05-19 18:39:39 -07:00
Maxim Moiseev
5fe2a0232e
[stdlib] Introducing MinimalStrideableIndex... ( #2506 )
...
... as well as new test collection types:
`MinimalRandomAccessCollectionWithStrideableIndex` and
`DefaultedRandonAccessCollectionWithStrideableIndex`, to test default
implementation of `index(...)` family of functions provided by the
standard library for the random access collections with strideable
indices.
2016-05-13 11:19:46 -07:00
Ted Kremenek
942e524285
Revert "SE-0036: Requiring Leading Dot Prefixes for Enum Instance Member Implementations" ( #2477 )
2016-05-11 11:02:37 -07:00
Jordan Rose
14a7334aef
Merge pull request #2224 : SE-0036: Requiring Leading Dot Prefixes for Enum Instance Member Implementations
...
from @ahoppen
2016-05-10 19:58:09 -07:00
Dmitri Gribenko
32605a19d9
StdlibCollectionUnittest: MinimalIterator: allow multiple nil returns
...
SE-0052 requires all iterators to return nil indefinitely after all
elements have been consumed.
2016-05-10 14:16:22 -07:00
Alex Hoppen
0e8c69c56f
[SE-0036]: Requiring Leading Dot Prefixes for Enum Instance Member Implementations
2016-05-07 22:39:26 +02:00
Dmitri Gribenko
50a3662cc3
StdlibCollectionUnittest: remove a protocol that had only one user
2016-04-28 14:57:52 -07:00
Dave Abrahams
9bee5d182f
[stdlib] location/formLocation => index/formIndex
2016-04-26 17:46:16 -07:00
Dmitri Gribenko
5ec4252a56
stdlib: fix warnings and indentation
2016-04-26 11:15:35 -07:00
Dmitri Gribenko
54d81b6633
Rewrite tests for _copyToNativeArrayBuffer() default implementations to use StdlibCollectionUnittest infrastructure
2016-04-21 18:31:31 -07:00
Dave Abrahams
47a870cc50
[stdlib] Use location/formLocation for all index movement
2016-04-21 17:13:41 -07:00
Dmitri Gribenko
3e708a9328
Merge commit '8e292daec1bc790c96b5ee39b8d55dadcac6ce1b' into swift-3-indexing-model
2016-04-14 15:10:26 -07:00
Dmitri Gribenko
10697f939f
Merge commit '510f29abf77e202780c11d5f6c7449313c819030' into swift-3-indexing-model
2016-04-14 13:45:27 -07:00
Trent Nadeau
f96ad263a8
Added @discardableResult attr to mutating functions
2016-04-07 23:27:38 +00: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
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
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
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
bd9e855e5b
StdlibCollectionUnittest: make it work with new slice types, and add more test cases
2016-03-29 17:22:52 -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
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
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
Jordan Rose
b319e3da32
stdlib: Adjust to insert(contentsOf:at:) and append(contentsOf:)
...
instead of insertContents(of:at:) and appendContents(of:),
originally insertContentsOf(_:at:) and appendContentsOf(_:)
per internal discussion.
2016-02-25 12:50:39 -08:00
Jordan Rose
e4e9c71d8f
StdlibUnittest: Rename enum cases and static vars to match API guidelines.
2016-02-24 18:23:59 -08:00
Jordan Rose
40d5e349bb
stdlib: insertContentsOf(_:at:) becomes insertContents(of:at:)
2016-02-23 16:58:49 -08:00
Dmitri Gribenko
f0633ce5a9
stdlib: Sequence.iterator() => .makeIterator()
2016-02-23 13:52:30 -08:00
Max Moiseev
52f0cf49b0
[stdlib] indexOf => index(of:)/index(where:)
2016-02-23 11:45:11 -08:00
Max Moiseev
4b9eab6288
appendContentsOf => appendContents(of:)
2016-02-22 18:02:04 -08:00
Dmitri Gribenko
593b4cc3d6
stdlib: add first argument label to _failEarlyRangeCheck2()
2016-02-18 17:11:35 -08:00
Dmitri Gribenko
efaa39ea79
stdlib: add first argument labels and some other changes to conform to API guidelines
2016-02-15 23:47:54 -08:00
Max Moiseev
55fde4c923
making tests pass
2016-02-10 16:08:40 -08:00
Chris Lattner
0619e57a61
Switch the stdlib to use #file instead of __FILE__, and deprecate the __FILE__ identifiers.
...
This also updates the tests that would otherwise fail.
2016-02-04 15:08:31 -08:00