File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change 5
5
// UNSUPPORTED: OS=watchos
6
6
// UNSUPPORTED: OS=tvos
7
7
8
- // FIXME: due to the lack of availability attributes in the SDK this test does
9
- // not fail on macOS Sierra, but does fail on El Capitan. Marking macOS
10
- // as unsupported for now.
11
- // UNSUPPORTED: OS=macosx
12
-
13
8
import Intents
14
9
import StdlibUnittest
15
10
16
11
let IntentsTestSuite = TestSuite ( " Intents " )
17
12
18
- IntentsTestSuite . test ( " ErrorDomain " ) {
19
- expectEqual ( " IntentsErrorDomain " , INIntentErrorDomain)
20
- }
13
+ if #available( OSX 10 . 12 , iOS 10 . 0 , * ) {
14
+
15
+ IntentsTestSuite . test ( " ErrorDomain " ) {
16
+ expectEqual ( " IntentsErrorDomain " , INIntentErrorDomain)
17
+ }
21
18
22
- IntentsTestSuite . test ( " extension " ) {
23
- expectEqual ( " IntentsErrorDomain " , INIntentError . _nsErrorDomain)
19
+ IntentsTestSuite . test ( " extension " ) {
20
+ expectEqual ( " IntentsErrorDomain " , INIntentError . _nsErrorDomain)
21
+ }
24
22
}
25
23
26
24
runAllTests ( )
You can’t perform that action at this time.
0 commit comments