質問編集履歴

1

回答者さんのアドバイスに対する返答の補足

2020/06/21 08:54

投稿

kikizi
kikizi

スコア5

test CHANGED
File without changes
test CHANGED
@@ -9,3 +9,63 @@
9
9
 
10
10
 
11
11
  と警告された。swiftを始めたてでどうしたらいいか分からず困っています。
12
+
13
+
14
+
15
+
16
+
17
+ import XCTest    //Failed to load module'XCTest'のエラー構文
18
+
19
+ @testable import ipad9_7sihyouteiji
20
+
21
+
22
+
23
+ class ipad9_7sihyouteijiTests: XCTestCase {
24
+
25
+
26
+
27
+ override func setUp() {
28
+
29
+ super.setUp()
30
+
31
+ // Put setup code here. This method is called before the invocation of each test method in the class.
32
+
33
+ }
34
+
35
+
36
+
37
+ override func tearDown() {
38
+
39
+ // Put teardown code here. This method is called after the invocation of each test method in the class.
40
+
41
+ super.tearDown()
42
+
43
+ }
44
+
45
+
46
+
47
+ func testExample() {
48
+
49
+ // This is an example of a functional test case.
50
+
51
+ // Use XCTAssert and related functions to verify your tests produce the correct results.
52
+
53
+ }
54
+
55
+
56
+
57
+ func testPerformanceExample() {
58
+
59
+ // This is an example of a performance test case.
60
+
61
+ self.measure {
62
+
63
+ // Put the code you want to measure the time of here.
64
+
65
+ }
66
+
67
+ }
68
+
69
+
70
+
71
+ }