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
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
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
Jordan Rose
cd9114423a
Reapply "[StdlibUnittest] Install our own handler for uncaught ObjC exceptions."
...
This reapplies e6a519f and 86dcce1 by reverting e86d3bd , which reverted
more than it needed to.
2016-03-22 16:24:40 -07:00
Dmitri Gribenko
a6cd57222a
Merge remote-tracking branch 'origin/master' into swift-3-indexing-model
2016-03-21 14:41:15 -07:00
Michael Ilseman
e86d3bde6c
Revert "[ReconstructType] Fix decl lookup when there are multiple constructors"
...
This reverts commit 65c86b713d .
I attempted to resolve the merge conflict, but Jordan will need to do
a second check.
2016-03-20 20:00:37 -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
Jordan Rose
86dcce1259
[StdlibUnittest] Don't catch ObjC exceptions on non-ObjC platforms.
...
My apologies!
2016-03-18 14:25:07 -07:00
Dave Abrahams
6dee0c0cd3
[stdlib] indexing model: restore checkRangeReplaceable
...
Failures down to 19, 4 in stdlib.
2016-03-18 14:06:42 -07:00
Jordan Rose
e6a519fbda
[StdlibUnittest] Install our own handler for uncaught ObjC exceptions.
...
We don't want to be at the whims of the system on what to do with an
uncaught exception; we need to make sure its message gets printed to
stderr so that the parent process can check it.
(There's a bit of trickery here to see if the class looks like an
NSException; otherwise we lose the name of the exception and just get
the reason.)
2016-03-18 13:55:45 -07:00
Harlan Haskins
47541c92b4
[StdlibUnittest] Made output for expected crashes less fatalistic
2016-03-17 18:23:41 -06:00
Harlan Haskins
424eec9960
[StdlibUnitTest] Disable printing child stderr for expected crashes.
2016-03-17 15:14:05 -06: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
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
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
fe42606062
[stdlib] - WIP moved aspects of ForwardIndex and BidirectionalIndex into their Collection equivalents
2016-03-04 07:40:59 -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
Jordan Rose
e4e9c71d8f
StdlibUnittest: Rename enum cases and static vars to match API guidelines.
2016-02-24 18:23:59 -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
Dmitri Gribenko
097085e16f
stdlib: Sequence.lexicographicalCompare(_:) => .lexicographicallyPrecedes(_:)
2016-02-23 18:12:09 -08:00
Jordan Rose
0205191e32
stdlib: SequenceType._initializeTo(_:) becomes _copyContents(initializing:)
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
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
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
Max Moiseev
78ba5d5f3f
[stdlib] Requires in comments changed to Precondition
2016-02-19 18:57:26 -08:00
Max Moiseev
40b1a0b7e0
[stdlib] all sorts of require renamed back to precondition
2016-02-19 18:21:29 -08:00
Dmitri Gribenko
65d840c0ae
stdlib: lowercase cases in Optional and ImplicitlyUnwrappedOptional
2016-02-18 00:40:33 -08:00
Dmitri Gribenko
0e1c488f9a
stdlib: print, debugPrint: 'toStream:' => 'to:'
2016-02-15 23:48:02 -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
Max Moiseev
39fdbca8d0
making Swift build succesfully after the merge
2016-02-04 16:48:14 -08:00
Max Moiseev
61c837209b
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-02-04 16:13:39 -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
Dmitri Gribenko
a385779e41
stdlib: define a custom mirror for DictionaryGenerator and SetGenerator
...
The default mirror tries to access implementation details of the
generator, accessing the 'description' property of the storage, which is
an NSDictionary subclass. The default implementation of -[NSDictionary
description] tries to print the dictionary contents. But if the
Swift.Dictionary can't be bridged to NSDictionary, that causes a runtime
trap.
rdar://problem/24238609
2016-01-30 02:09:45 -08:00
David Farler
3f635d04c7
Reinstante var bindings in refutable patterns, except function parameters.
...
This reverts commits: b96e06da44 ,
8f2fbdc93a ,
93b6962478 ,
64024118f4 ,
a759ca9141 ,
3434f9642b ,
9f33429891 ,
47c043e8a6 .
This commit leaves 'var' on function parameters as a warning to be
merged into Swift 2.2. For Swift 3, this will be an error, to be
converted in a follow-up.
2016-01-29 15:27:08 -08:00
Dmitri Gribenko
a5a70dd14c
StdlibUnittest: use ResettableValue more, removing error-prone boilerplate from tests
2016-01-29 13:24:59 -08:00
Slava Pestov
55644c1540
stdlib: Remove Self parameter from SequenceType._preprocessingPass
...
This code as written is not sound and should not type check
for non-final classes conforming to SequenceType (eg, NSArray).
Instead, capture the base of the call from the preprocess closure
passed in. The closure is @noescape, so it should be equivalent.
2016-01-29 12:18:39 -08:00
Dmitri Gribenko
fbbb42a5db
Merge pull request #1130 from glessard/noobjc-testpredicate
...
Add cases .ObjCRuntime and .NativeRuntime to StdlibUnittest's TestPredicate
2016-01-29 10:36:28 -08:00
Dmitri Gribenko
7368b08d86
Merge pull request #1133 from glessard/always-never-testpredicate
...
Add .Always and .Never cases to StdlibUnittest's TestPredicate
2016-01-28 23:19:55 -08:00
Guillaume Lessard
b7f19d6889
Add .Always and .Never cases to StdlibUnittest's TestPredicate
2016-01-28 23:03:00 -07:00
Guillaume Lessard
6879dbd553
Add runtime-related cases to StdlibUnittest's TestPredicate
2016-01-28 20:16:11 -07:00
Ling Wang
148c821d2c
Fix test failure
2016-01-28 09:35:00 -06:00
Ling Wang
29bd8cc1b5
Merge from upstream and resolve conflicts
2016-01-27 16:08:15 -06:00