Max Moiseev
b9fb3badc8
Merge remote-tracking branch 'origin/master' into new-integer-protocols
2017-03-22 12:30:24 -07:00
Brian King
29c1fc472b
Generate an error message on protocol extensions with the final attribute.
2017-03-09 14:18:39 -05:00
Max Moiseev
3522f3c47c
Fixing tests with artihmetic operators back on concrete types
2017-01-23 14:56:29 -08:00
Dmitri Gribenko
d175b3b66d
Migrate FileCheck to %FileCheck in tests
2016-08-10 23:52:02 -07:00
Michael Ilseman
f48471ebd4
[noescape by default] purge tests of needless @noescape
2016-08-04 16:14:27 -07:00
Robert Widmann
4f465224ea
Polish off uses of dynamicType in tests
2016-07-29 16:59:14 -07:00
Nate Cook
29bbff221b
[stdlib] Update partition tests with feedback
2016-07-21 10:18:20 -05:00
Nate Cook
1d037800b9
[stdlib] Update tests for new partition APIs
...
Special thanks to @aschwaighofer for help with these tests and fix-its!
2016-07-21 10:18:20 -05:00
John McCall
82d849edd7
Remove the portions of these tests that were relying on old stdlib APIs.
...
Judging from history, the original tests appear to just be attempts to
flesh out test coverage rather than specific regression tests, and the
features in question are well-covered by other tests.
2016-05-10 14:17:35 -07:00
Dmitri Gribenko
2a07df42b8
XFAIL compiler tests that depend on stdlib implementation details
...
<rdar://problem/25666028> swift-3-indexing-model: Generics/associated_self_constraints.swift
<rdar://problem/25665969> swift-3-indexing-model: Interpreter/protocol_extensions.swift fails
<rdar://problem/25890224> swift-3-indexing-model: TEST 'Swift :: NameBinding/reference-dependencies.swift' FAILED
2016-04-25 11:44:34 -07:00
Dmitri Gribenko
2b35fea059
Merge remote-tracking branch 'origin/master' into swift-3-indexing-model
2016-04-16 00:30:12 -07:00
Chris Lattner
8746676616
Move @noescape and @autoclosure to their new places in various tests, NFC.
2016-04-15 16:05:35 -07:00
Dmitri Gribenko
10697f939f
Merge commit '510f29abf77e202780c11d5f6c7449313c819030' into swift-3-indexing-model
2016-04-14 13:45:27 -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
Dave Abrahams
b4907cc81f
[stdlib] indexing model: Undo test changes
...
Leave the test in (basically) its original state so my attempts to fix
it don't confuse Doug.
2016-03-18 15:20:01 -07:00
Dave Abrahams
2bb35646d7
[stdlib] indexing model: Fix tests for traversal
...
Traversal is now represented in the Collection hierarchy and the Index
hierarchy is gone.
2016-03-18 15:14: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
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
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
Dmitri Gribenko
f0633ce5a9
stdlib: Sequence.iterator() => .makeIterator()
2016-02-23 13:52:30 -08:00
Max Moiseev
4b9eab6288
appendContentsOf => appendContents(of:)
2016-02-22 18:02:04 -08:00
Dmitri Gribenko
06577273e9
var Sequence.enumerated => func
2015-12-18 16:22:24 -08:00
Dmitri Gribenko
5b728dc859
Remove Range<Index> argument from Collection.partition()
...
collection.partition(i..<j) => collection[i..<j].partition()
2015-12-18 16:20:01 -08:00
Maxim Moiseev
9e50505970
internal or public // @testable initializers
2015-12-17 17:02:49 -08:00
Max Moiseev
3fe0c60d7f
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2015-12-17 11:00:02 -08:00
Daniel Duan
ebb0c3a204
replaced single-line ++/-- with +=/-=
2015-12-15 09:05:37 -08:00
Maxim Moiseev
844b81c46b
SequenceType => Sequence
2015-12-09 17:16:56 -08:00
Maxim Moiseev
c678a839dc
IndexType => Index
2015-12-09 17:16:42 -08:00
Dmitri Gribenko
5a07f89297
Remove 'generator' from names of test functions and local variables
2015-12-09 17:15:11 -08:00
Dmitri Gribenko
d72b5ab575
func SequenceType.enumerate() => var SequenceType.enumerated
2015-12-09 17:13:21 -08:00
Maxim Moiseev
09a6913622
RangeReplaceableCollectionType => RangeReplaceableCollection
2015-12-09 17:13:08 -08:00
Maxim Moiseev
7e2466c14e
CollectionType => Collection
2015-12-09 17:12:48 -08:00
Dmitri Gribenko
1c0047829a
Rename SequenceType.generate() to SequenceType.iterator()
2015-12-09 17:11:17 -08:00
Dmitri Gribenko
2cf172160c
Rename SequenceType.Generator associated type to SequenceType.Iterator
2015-12-09 17:11:05 -08:00
Dmitri Gribenko
31598d41bf
Rename GeneratorType to IteratorProtocol
2015-12-07 17:08:32 -08:00
Dmitri Gribenko
3505975a75
Make EnumerateGenerator and EnumerateSequence initializers internal
2015-12-07 16:56:31 -08:00
Dmitri Hrybenko
ee20926b20
stdlib: rename join() to joinWithSeparator()
...
rdar://22022419, rdar://21474222
Swift SVN r31188
2015-08-12 21:16:38 +00:00
Dmitri Hrybenko
d6f04ade75
stdlib: convert join() into a protocol extension
...
Part of rdar://22022419
Swift SVN r31186
2015-08-12 21:16:25 +00:00
Joe Pamer
828eb68e72
Commit DaveA's API changes to 'print', along with the compiler changes necessary to support them.
...
There's still work left to do. In terms of next steps, there's still rdar://problem/22126141, which covers removing the 'workaround' overloads for print (that prevent bogus overload resolution failures), as well as providing a decent diagnostic when users invoke print with 'appendNewline'.
Swift SVN r30976
2015-08-04 01:57:11 +00:00
Dave Abrahams
1f3bf276db
Warning suppression in tests
...
Swift SVN r30751
2015-07-29 02:04:12 +00:00
Joe Groff
db0fea590e
stdlib: Use unqualified names in 'print'.
...
Leave the qualification off of enum cases and type names when 'print'-ing them, but keep them on 'debugPrint'. (At least, at the outermost level; since ad-hoc printing of structs and tuples uses debugPrint, we'll still get qualification at depth, which kind of sucks but needs more invasive state management in print to make possible.) Implements rdar://problem/21788604.
Swift SVN r30166
2015-07-13 21:42:11 +00:00
David Farler
438119d558
Fold ExtensibleCollectionType into RangeRaplaceableCollectionType
...
ExtensibleCollectionType's operations can all be represented by the
primitive range replacement operation, so fold it into
RangeReplaceableCollectionType.
In addition, provide default implementations of
RangeReplaceableCollectionType's methods.
- New tests added for combinations of (static, generic) calls and
(default, custom) implementations.
- Mark free Swift functions as unavailable with a message to direct the
developer to the protocol methods.
- Mark ExtensibleCollectionType as available with a message added to
direct the developer to the right protocol.
rdar://problem/18220295
Swift SVN r29857
2015-07-01 22:33:04 +00:00
Slava Pestov
ee07ddc2bf
Sema: Fix crash calling protocol extension methods returning Self on existential
...
In r26737, Sema was changed to not wrap Self occurring in a protocol
extension in a DynamicSelf. The commit message was rather terse but
I believe this is because the metadata for Self is bound to the static
base type, not the runtime base type.
However, we still need to substitute Self in the return type for the
static base type in the case where the base is an existential,
otherwise we get an open existential type leaking out.
Also remove the default argument for replaceCovariantResultType(),
every call site passed in a value and it seems bad to omit it on
accident.
Fixes <rdar://problem/21433694>.
Swift SVN r29802
2015-06-30 05:36:00 +00:00
Dmitri Hrybenko
ba208cd672
stdlib: rename zip generator and collection to a common naming convention
...
// Renamed from `ZipGenerator2`.
struct Zip2Generator<Generator1 : GeneratorType, Generator2 : GeneratorType> { ... }
// Renamed from `Zip2`.
struct Zip2Sequence<Sequence1 : SequenceType, Sequence2 : SequenceType> { ... }
Part of rdar://21429126
Swift SVN r29636
2015-06-24 20:42:03 +00:00
Dave Abrahams
f0fac67917
Revert "[stdlib] join() => protocol extension"
...
This reverts r29467; it hasn't passed through API review yet.
Swift SVN r29470
2015-06-17 23:21:14 +00:00
Dave Abrahams
3299e1be4c
[stdlib] join() => protocol extension
...
Also, un-constrain it so that the type of the sequences passed as an
argument does not have to match the type of the method target.
Swift SVN r29467
2015-06-17 23:16:56 +00:00
Joe Groff
d7b9ae72aa
Sema: Require '.init' when constructing from a dynamic metatype.
...
This makes it clearer that expressions like "foo.myType.init()" are creating new objects, instead of invoking a weird-looking method. The last part of rdar://problem/21375845.
Swift SVN r29375
2015-06-14 19:50:06 +00:00
Arnold Schwaighofer
859fbc0162
More executable_test for the test directory
...
Swift SVN r29280
2015-06-03 23:28:51 +00:00