Ben Cohen
685f31b0e2
[stdlib] Migrate stdlib tests of Swift 3 ( #17427 )
...
* First sweep of Swift 3 stdlib test upgrades
* Review feedback
* Remove a handful more #if >=4.0
* Fix up Dictionary tests
2018-07-08 09:37:01 -07:00
Mishal Shah
64a77ca716
Update master to build with Xcode 9 beta 4, macOS 10.13, iOS 11, tvOS 11, and watchOS 4 SDKs.
2017-07-28 11:17:59 -07:00
Brian Croom
f788a309ff
Stop swallowing test interruption exceptions thrown during XCTAssert evaluation.
...
Rethrow any test interruption exceptions that get caught, mirroring the
behavior of the Objective-C XCTAssert macros.
<rdar://problem/33255447>
2017-07-12 12:28:34 -07:00
Mishal Shah
c5ff1f2cac
Update master to build with Xcode 9 beta 1, OS X 10.13, iOS 11, tvOS 11, and watchOS 4 SDKs.
2017-06-14 16:20:35 -07:00
Arthur Ariel Sabintsev
12ef5bbc26
Fixes validation test by removing non-existant closure
2017-01-13 02:40:28 -05:00
Arthur Ariel Sabintsev
c7cbb171fd
Fixed indentation for 2 methods in XCTest within validation-test
2017-01-13 01:40:55 -05:00
Arthur Ariel Sabintsev
741056578f
Revert "All declarations in XCTest in SDK and XCTest in validations-tests have 2 spaces instead of 4"
...
This reverts commit 43a7b31490 .
2017-01-13 01:38:27 -05:00
Arthur Ariel Sabintsev
43a7b31490
All declarations in XCTest in SDK and XCTest in validations-tests have 2 spaces instead of 4
2017-01-13 01:36:37 -05:00
Arthur Ariel Sabintsev
5f9352c8d2
Fixed indentation.
2017-01-13 01:28:53 -05:00
Arthur Ariel Sabintsev
13094af307
Fixed indentation
2017-01-13 01:18:21 -05:00
Arthur Ariel Sabintsev
31b96ad3cd
Adjusted _XCTRegisterFailure conditions. Added validation test for XCTAssertNoThrow
2017-01-13 00:41:47 -05:00
Jordan Rose
a286af7683
Re-enable long-disabled XCTest test.
2016-11-17 17:08:25 -08:00
Michael Gottesman
fa1bb95923
Merge remote-tracking branch 'origin/master' into master-next
2016-08-30 19:50:12 -07:00
Joe Groff
62afa03eb9
Improve Foundation overlay to handle bridging subscripts and dictionary literals.
...
SE-0072 took implicit bridging conversions away, which regressed the ability to express NSDictionaries as dictionary literals and index them using literal keys. Address this by changing the signature of init(dictionaryLiteral:) to use Hashable and Any, and by replacing the subscript from Objective-C with one using _Hashable that does the bridging on the user's behalf. This largely restores the QoI of working with NS collections.
2016-08-04 08:42:36 -07:00
Joe Groff
11f03cd8b5
Sema: Don't try bridged classes as default literal types.
...
One last bit of SE-0072. We shouldn't fall back to bridged classes in the absence of type context for literals anymore. By itself, this kind of hoses the use of literals with NS types, but I think we can get most of the QoI back with overlay changes I plan to propose following this.
2016-07-29 15:18:31 -07:00
Michael Gottesman
8d00a6cb59
Merge remote-tracking branch 'origin/master' into master-next
...
Conflicts:
stdlib/public/SDK/GameplayKit/CMakeLists.txt
test/DebugInfo/bound-namealiastype.swift
test/DebugInfo/structs.swift
test/IRGen/c_globals.swift
test/SourceKit/DocSupport/doc_clang_module.swift
test/SourceKit/Indexing/index_with_clang_module.swift
utils/update-checkout
2016-06-25 01:13:50 -07:00
Mishal Shah
87b7bcfd3e
Update master to build with Xcode 8 beta 1, OS X 10.12, iOS 10, tvOS 10, and watchOS 3 SDKs.
2016-06-14 14:53:55 -07:00
Brian Croom
1b7a447955
Test the failure messages for optional and non-optional XCTAssertEqual variants
2016-05-31 08:20:56 -04:00
Nicola Salmoria
956b6b1cad
SR-1417: Add non-optional overloads of XCTAssertEqual and XCTAssertNotEqual
...
Previously, the only version of the functions that accepted values was the one that implicitly wraps them into Optionals. This generated a confusing error message when the assert failed. Having a separate overload that accepts non-optional types ensures that the correct description is printed when the assert fails.
2016-05-31 08:16:02 -04:00
Michael Gottesman
3fea66bc98
Revert "Disable XCTest.swift until bot is upgraded."
...
This reverts commit bddea630d9 .
2016-05-18 16:13:18 -07:00
Michael Gottesman
bddea630d9
Disable XCTest.swift until bot is upgraded.
...
(cherry picked from commit b617d6b8e78a458fc708d4cf422f44f508912c33)
2016-05-13 22:04:40 -07:00
Doug Gregor
1c571d9631
Disable currently-failing XCTest test covered by rdar://problem/25733187
2016-04-14 13:10:19 -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
Mike Ferris
a3b880a9bf
<rdar://problem/25034414> Enable unit tests for test methods that throw once the open source CI is on 7.3
2016-04-02 07:26:55 -07:00
Slava Pestov
49c54870c1
Serialization: Auto-linking recursively walks modules imported from -sil-serialize-all modules
2016-04-01 12:21:36 -07:00
Max Moiseev
1fae0d1325
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-03-08 12:48:48 -08:00
Mike Ferris
7fb274a643
<rdar://problem/24814424> Add unit tests for the error handling support in the XCTest swift overlay
2016-03-08 08:35:24 -08:00
Max Moiseev
55fde4c923
making tests pass
2016-02-10 16:08:40 -08:00
Dmitri Gribenko
b4cd0e8e59
Re-enable validation-test/stdlib/XCTest.swift on OS X
...
The test only fails on iOS.
2016-01-27 14:09:33 -08:00
Erik Eckstein
adef0368bb
tests: add import statements to workaround linker errors in all relevant tests.
...
This is needed if we compile StdlibUnittest with -sil-serialize-all
So far I added the imports only in files which needed them. But this may change, depending on the optimizer (inlining).
Adding them in all files doesn't harm and avoids confusion if someone makes an unrelated change which would result in such a linker error.
2016-01-21 09:59:50 -08:00
Erik Eckstein
beff34c1b6
test: Temporarily disable the XCTest because it fails to load a dylib.
...
rdar://problem/24222804
2016-01-17 09:48:09 -08:00
Brian Gesiak
6bba5f3432
[XCTest] Add more in-depth validation tests
...
The current validation tests for the stdlib XCTest only check that it
compiles, not that it works at runtime. Begin adding tests that verify
its behavior at runtime, beginning with:
- A test that Objective-C exceptions are captured and reported.
- Tests for some function overloads of `XCTAssertEqual()`.
2015-12-26 15:46:44 -05:00
Arnold Schwaighofer
4d4329b0e0
Add executable_test to the validation test suite
...
Swift SVN r29278
2015-06-03 23:28:43 +00:00
Dmitri Hrybenko
37135f441b
XCTest requires objc_interop
...
Swift SVN r29198
2015-06-01 01:32:46 +00:00
Dmitri Hrybenko
29ec6ab6b5
Re-enable the XCTest overlay for OSX
...
And add the first smoketest for the XCTest overlay to prevent
regressions in future.
Swift SVN r29197
2015-06-01 01:09:31 +00:00