Jordan Rose
b911fda8ea
[StdlibUnittest] Add expectNotEqual(expected: T?, actual: T?)
...
Also simplify the implementation of expectEqual(T?, T?).
2016-04-11 17:55:10 -07:00
Dmitri Gribenko
d52cbab5c2
Merge commit '0ff3239b962218267d37307e53906b31315a1cfc' into swift-3-indexing-model
...
This commit is the parent of the commit that implemented SE-0046
Establish consistent label behavior across all parameters including
first labels
2016-04-09 16:18:33 -07:00
Dmitri Gribenko
4efc16b5f1
StdlibUnittest: strengthen constraints in check*AssociatedTypes()
2016-04-08 18:46:00 -07:00
Harlan Haskins
5d888873da
[StdlibUnittest] Teach interpreter to run crash tests
2016-04-08 13:12:53 -07:00
Max Moiseev
6c56af5c1b
[stdlib] splitting expressions with lazy to improve compilation time
2016-04-08 11:06:05 -07:00
Harlan
e6395343cf
Update autoreleasepool definition in RaceTest
...
Missed in SE-0046 migration
2016-04-07 13:54:02 -07:00
practicalswift
66183cdbf7
[gardening] Fix unjustified spacing
2016-04-07 10:10:24 +02: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
5864117b1b
[stdlib] De-underscore Range.init(uncheckedBounds:)
2016-04-06 09:20:30 -07:00
Dave Abrahams
db03708a3d
[stdlib] De-underscore Range protocols
...
There's really no excuse for keeping these hidden; they appear in public
APIs.
2016-04-05 16:32:15 -07:00
Dmitri Gribenko
0bab6fc461
StdlibUnittest: add a doc comment to LifetimeTracked, and remove a fixme
2016-04-05 15:39:30 -07:00
Slava Pestov
11cff083d8
StdlibUnittest: Add a default case to a switch over a resilient enum
...
I'm not completely satisfied with this fix because we get a compiler
warning when compiling without -enable-resilience. Perhaps we need
a policy change that a default case in a switch only generates a
warning if the enum is *explicitly* @_fixed_layout (or eventually,
@closed or however this attribute ends up being written).
2016-04-05 00:28:34 -07:00
Dmitri Gribenko
0a0825d18d
Merge pull request #1972 from apple/StdlibUnittest-make-classes-final
...
StdlibUnittest: make TestSuite and other helper classes final
2016-04-04 15:10:46 -07:00
Dmitri Gribenko
6985b958fd
Merge remote-tracking branch 'origin/master' into swift-3-indexing-model
2016-04-04 11:42:17 -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
e43e25e3b7
StdlibUnittest: add optimized overloads for expectEqualsUnordered()
2016-04-01 23:05:19 -07:00
Dmitri Gribenko
bad2ff1bb7
StdlibUnittest: add assertions for range checks
2016-04-01 14:12:17 -07:00
Dmitri Gribenko
5a12349e9c
Merge remote-tracking branch 'origin/master' into swift-3-indexing-model
2016-04-01 14:12:13 -07:00
Dmitri Gribenko
f782cba799
StdlibUnittest: fix a compiler warning
2016-03-31 09:52:28 -07:00
Dmitri Gribenko
66808b96b9
StdlibUnittest: correct precondition() message
2016-03-31 09:28:01 -07:00
Dmitri Gribenko
27e2f7f6d9
StdlibUnittest: new feature: data-parameterized tests
2016-03-31 00:50:10 -07:00
Dmitri Gribenko
cd4b963d40
StdlibUnittest: use 'Array.append(Element)' instead of 'Array += Array'
2016-03-30 21:03:24 -07:00
Dmitri Gribenko
76083bb1f3
StdlibUnittest: make TestSuite and other helper classes final
...
These classes are not meant to be subclassed.
2016-03-30 20:46:21 -07:00
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
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
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
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
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
bdff4cbb34
New indexing model: updated LifetimeTracked
2016-03-10 13:47:13 -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