mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
25 lines
498 B
Swift
25 lines
498 B
Swift
// RUN: %target-run-simple-swift
|
|
// REQUIRES: executable_test
|
|
// REQUIRES: objc_interop
|
|
|
|
// UNSUPPORTED: OS=watchos
|
|
// UNSUPPORTED: OS=tvos
|
|
|
|
import Intents
|
|
import StdlibUnittest
|
|
|
|
let IntentsTestSuite = TestSuite("Intents")
|
|
|
|
if #available(OSX 10.12, iOS 10.0, *) {
|
|
|
|
IntentsTestSuite.test("ErrorDomain") {
|
|
expectEqual("IntentsErrorDomain", INIntentErrorDomain)
|
|
}
|
|
|
|
IntentsTestSuite.test("extension") {
|
|
expectEqual("IntentsErrorDomain", INIntentError._nsErrorDomain)
|
|
}
|
|
}
|
|
|
|
runAllTests()
|