Commit Graph

1231 Commits

Author SHA1 Message Date
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
Dmitri Gribenko
47201398c4 StdlibUnittest: move string convertion assertions to StringConvertible.swift.gyb 2016-03-15 11:33:22 -07:00
Dmitri Gribenko
d8967d85fd StdlibUnittest: add expectDumped() 2016-03-14 21:48:24 -07:00
Dmitri Gribenko
04ec024808 StdlibUnittest: add CustomPrintableValue type, which will be used to test converting instances to stings 2016-03-14 21:48:03 -07:00
Shawn Erickson
fe9482b6bb New indexing model: WIP fixed compile issues in various stdlib tests 2016-03-13 21:00:01 -07:00
Dmitri Gribenko
dfedb6d418 New indexing model: make ... return RangeOfStrideable, this seems to match expectations better 2016-03-11 18:40:29 -08:00
Dmitri Gribenko
7e18b5cf11 StdlibUnittest: checkEquatable: improve error reporting
checkEquatable() could complain about the oracle function instead of
complaining about the '==' function.
2016-03-11 18:06:13 -08:00
Dmitri Gribenko
36c028c635 StdlibUnittest: add MinimalStrideableValue 2016-03-11 18:06:12 -08:00
Dmitri Gribenko
85fa40de89 New indexing model: uncomment SwiftPrivate.withArrayOfCStrings(), it builds now 2016-03-11 13:25:48 -08:00
Dmitri Gribenko
c69ed8ee76 StdlibUnittest: make == for MinimalEquatableValue customizable 2016-03-11 10:44:48 -08:00
Dmitri Gribenko
509213295a StdlibUnittest: split minimal protocol models into a new file, MinimalTypes.swift.gyb 2016-03-11 10:20:37 -08:00
Dmitri Gribenko
0044e936ea New indexing model: make StdlibUnittest compile by commenting out huge parts of it 2016-03-10 17:16:53 -08:00
Shawn Erickson
643d7980f7 New indexing model: WIP updating CheckCollectionType.swift, not compiler verified 2016-03-10 14:37:29 -08:00
Shawn Erickson
bdff4cbb34 New indexing model: updated LifetimeTracked 2016-03-10 13:47:13 -08:00
Shawn Erickson
b097b55f1a New indexing model: fix RNG and addition of RandomAccess to UTF16View on foundation load 2016-03-10 07:29:41 -08:00
Dmitri Gribenko
886d5a707c Merge remote-tracking branch 'origin/master' into swift-3-indexing-model 2016-03-09 20:51:38 -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
Shawn Erickson
fe42606062 [stdlib] - WIP moved aspects of ForwardIndex and BidirectionalIndex into their Collection equivalents 2016-03-04 07:40:59 -08:00
Max Moiseev
234bc2830d [stdlib] fixing compilation on Linux 2016-02-29 16:29:20 -07: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
practicalswift
34188788a1 [gardening] Sort file listings in CMakeLists.txt files 2016-02-27 19:50:30 +01:00
Daniel Duan
2bc78b8c09 [stdlib] update for 'inout' adjustment (SE-0031) 2016-02-26 12:02:29 -08: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
Dmitri Gribenko
f3389273ba stdlib: String indices: samePositionIn(_:) => samePosition(in:) 2016-02-24 16:29:27 -08:00
Chris Willmore
2ddb6106e4 stdlib: Audit API for Swift 3 preposition, first-arg label rules
This commit is the result of auditing the following files:

* StringBuffer.swift
* StringCharacterView.swift
* StringCore.swift
* StringInterpolation.swift.gyb
* StringLegacy.swift
2016-02-24 16:11:20 -08:00
Max Moiseev
bb3eaaf308 Merging in latest master 2016-02-24 15:10:25 -08:00
Dmitri Gribenko
e18d70a913 Merge pull request #1415 from Jnosh/array-types-validation-tests
Run collection unit tests on array types
2016-02-23 20:47:44 -08:00
Dmitri Gribenko
097085e16f stdlib: Sequence.lexicographicalCompare(_:) => .lexicographicallyPrecedes(_:) 2016-02-23 18:12:09 -08:00
Chris Willmore
6f0a1adb0a stdlib: Update NSStringAPI.swift to match NSString under Swift 3 naming rules. 2016-02-23 17:52:00 -08:00
Jordan Rose
0205191e32 stdlib: SequenceType._initializeTo(_:) becomes _copyContents(initializing:) 2016-02-23 16:58:49 -08:00
Jordan Rose
40d5e349bb stdlib: insertContentsOf(_:at:) becomes insertContents(of:at:) 2016-02-23 16:58:49 -08:00
Dave Abrahams
ece87787e0 stdlib: merge swift 3 UnsafePointer migrations 2016-02-23 15:45:45 -08:00
Dave Abrahams
64a5165ecf stdlib: deinitializePointee(_) => deinitialize()
Tacking "Pointee" on just for unary operations (and especially
operations with an optional count) created inconsistency.
2016-02-23 15:34:20 -08:00
Dave Abrahams
d96b051d28 stdlib: initializePointee(_) => initialize(with:)
Tacking "Pointee" on just for unary operations (and especially
operations with an optional count) created inconsistency.
2016-02-23 15:15:23 -08:00
Max Moiseev
42d5f30d3a Merge remote-tracking branch 'origin/swift-3-api-guidelines' into swift-3-api-guidelines 2016-02-23 14:45:21 -08:00
Max Moiseev
0b759a409c Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines 2016-02-23 14:26:14 -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
Janosch Hildebrand
af69499a47 [stdlib] Expand subscript(_: Range) tests on MutableCollectionType
Add tests for replacing a slice with a slice of a different size.
2016-02-23 16:55:40 +01:00
Max Moiseev
4b9eab6288 appendContentsOf => appendContents(of:) 2016-02-22 18:02:04 -08:00
Max Moiseev
481bcabcba [stdlib] API naming guidelines applied to split and join
- `separator` label for first argument of `split`
- `join` and related types are renamed to `joined`
2016-02-22 15:43:33 -08:00
practicalswift
15f88a4a39 [gardening] Fix header consistency for newly introduced header 2016-02-22 23:33:30 +01:00
Max Moiseev
675f457c3d Introducing by argument label to Sequence.split 2016-02-22 12:00:27 -08:00
Brian Gesiak
e7c022679d [stdlib] Rename "PrivateDarwin" to "PrivateLibc"
SwiftPrivateDarwinExtras is used by non-Darwin platforms as well; its
name is misleading. Rename it to SwiftPrivateLibcExtras, which is
closer to its actual function.
2016-02-22 11:07:24 -05:00