Dmitri Gribenko
d7e82519f5
stdlib: add argument labels to sort() implementation details
2016-02-24 08:52:18 -08:00
Dmitri Gribenko
391d1c34c2
Adjust SceneKit test for String API changes
2016-02-24 01:31:31 -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
Dmitri Gribenko
e81f99d7ea
stdlib: Sequence.startsWith() => .starts(with:)
2016-02-23 18:12:09 -08:00
Janosch Hildebrand
3c4bb1d657
[stdlib] Replace uses of ++ in validation tests
2016-02-24 01:59:18 +01: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
Janosch Hildebrand
4fba2ffbed
[stdlib] Run collection unit tests on array types
...
... and locate them with the RangeReplaceableCollectionType tests on the array types.
2016-02-24 00:00:33 +01: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
Dmitri Gribenko
196188b9c8
stdlib: add 'to:' label to dump()
2016-02-22 18:16:38 -08: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
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
b90470e2fe
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-02-19 09:51:53 -08:00
Dmitri Gribenko
98561f6137
stdlib: joinWithSeparator(_:) => join(separator:)
2016-02-18 22:30:57 -08:00
Dmitri Gribenko
a73390c06d
stdlib tests: replace '__FILE__' and '__LINE__' with '#file' and '#line'
2016-02-18 18:48:29 -08:00
Dmitri Gribenko
0f36bec31f
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-02-18 16:41:35 -08:00
Dmitri Gribenko
65d840c0ae
stdlib: lowercase cases in Optional and ImplicitlyUnwrappedOptional
2016-02-18 00:40:33 -08:00
Dmitri Gribenko
dd75aed67a
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-02-17 14:40:05 -08:00
Dmitri Gribenko
0795970fa7
Merge pull request #1096 from mattrajca/master
...
Added an an overlay for IOKit that adds the kIOReturnError* constants
2016-02-17 09:11:25 -08:00
Brian Gesiak
42215042ae
[validation-test] More granular FixedPoint tests
...
`FixedPoint.swift.gyb` generates a massive amount of assertions:
one for each `Int` type (such as `UInt8` and `Int64`) as a source,
to one of each `Int` type as a destination, for each of 27 bit
patterns. By my math that's 8 * 8 * 27 == 1728 assertions.
As a result, when one of those assertions fails, it's difficult to
tell what went wrong.
Split each assertion into its own test case. This makes the test
take a little longer to run, but it produces much more valuable
output when it fails.
2016-02-16 12:03:49 -05:00
Dmitri Gribenko
0e1c488f9a
stdlib: print, debugPrint: 'toStream:' => 'to:'
2016-02-15 23:48:02 -08:00
Dmitri Gribenko
25cc2d5695
stdlib: add first argument labels to Set and Dictionary
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
3a3984877a
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-02-15 15:43:34 -08:00
gregomni
10370a5c0f
Extend callee diagnoses to non-conforming complex args including generics.
...
Previously, type checking arguments worked fine if the entire arg was
UnresolvedType, but if the type just contained UnresolvedType, the
constraint system always failed via explicitly constraining to
unresolved.
Now in TypeCheckConstraints, if the solution allows for free variables
that are UnresolvedType, then also convert any incoming UnresolvedTypes
into variables. At worst, in the solution these just get converted back
into the same Unresolved that they started with.
This change allows for incorrect tuple/function type possibilities to
make it back out to CSDiag, where they can be more precisely diagnosed
with callee info. The rest of the changes are to correctly figure
out the failure info when evaluating more types of Types.
New diagnosis for a partial part of an arg type not confroming. Tests
added for that. Expected errors changed in several places where we
now get real types in the diagnosis instead of '(_)' unresolved.
2016-02-14 11:32:14 -08:00
Chris Lattner
a7dea79553
update validation test for diagnostics change.
2016-02-12 17:41:21 -08:00
Brian Gesiak
cc3165a0a9
[validation-test] Fix Swift 3 warnings in .gyb
...
Silence Swift 3 migration warnings:
- Replace `--` and `++` with `-= 1` and `+= 1`.
- Replace screaming snake case identifiers with `#file` and `#line`.
2016-02-11 11:42:59 -05:00
Max Moiseev
55fde4c923
making tests pass
2016-02-10 16:08:40 -08:00
Guillaume Lessard
99b703e8a4
Improve xfail and skip with better test predicates
2016-02-05 10:21:44 -07:00
Max Moiseev
61c837209b
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-02-04 16:13:39 -08:00
Slava Pestov
99b0e77d35
Merge pull request #1160 from gregomni/generic-func-args
...
[Sema] Extend callee diagnosis to complex args including generics, e.g. (Void) -> T
2016-02-03 22:55:15 -08:00
gregomni
6b30695869
Extend callee diagnosis to complex args including generics, e.g. (Void) -> T
...
Correctly determine callee closeness for func/ops that include generics
as part of more complicated parameters, i.e. tuple or closure args
containing generics as elements or args/results. Still only handling
single archetypes.
Also added code to check generic substitutions already made in the callee
parameters, which further helps diagnosis.
2016-02-03 22:54:19 -08:00
Dmitri Gribenko
0327fc3077
Merge pull request #1187 from glessard/increments
...
silence some warnings in validation-test/stdlib/Algorithm.swift
2016-02-03 10:37:06 -08:00
Dmitri Gribenko
00bde09962
Merge pull request #1186 from glessard/cite-bugreports
...
Cite bug reports in xfail annotations
2016-02-03 10:36:47 -08:00
Guillaume Lessard
f6e00cba4f
Cite bug reports in xfail annotations
2016-02-03 11:29:38 -07:00
Guillaume Lessard
a4a338beb1
Replace ++ by "+= 1"
2016-02-03 11:23:36 -07:00
David Farler
8a5ed405bf
Make var parameters an error for Swift 3
...
This finishes up revisions to SE-0003 - only var function parameters
are disallowed for Swift 3.
2016-01-30 12:39:17 -08:00
Dmitri Gribenko
27f422fe39
StdlibUnittest: move logging wrappers for collections to StdlibCollectionUnittest
2016-01-29 19:38:37 -07: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
cf7e3f6df4
stdlib: Range.contains: fix coding style and make the function public
...
... so that it actually has a chance to get referenced in the witness
table.
But since the function is in a constrained extension, it can't be.
2016-01-29 13:24:59 -08:00