File tree 1 file changed +3
-6
lines changed
extension/apple/ExecuTorch/__tests__ 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,7 @@ class ModuleTest: XCTestCase {
30
30
}
31
31
32
32
func testLoadMethod( ) {
33
- let bundle = Bundle ( for: type ( of: self ) )
34
- guard let modelPath = bundle. path ( forResource: " add " , ofType: " pte " ) else {
33
+ guard let modelPath = resourceBundle. path ( forResource: " add " , ofType: " pte " ) else {
35
34
XCTFail ( " Couldn't find the model file " )
36
35
return
37
36
}
@@ -41,8 +40,7 @@ class ModuleTest: XCTestCase {
41
40
}
42
41
43
42
func testMethodNames( ) {
44
- let bundle = Bundle ( for: type ( of: self ) )
45
- guard let modelPath = bundle. path ( forResource: " add " , ofType: " pte " ) else {
43
+ guard let modelPath = resourceBundle. path ( forResource: " add " , ofType: " pte " ) else {
46
44
XCTFail ( " Couldn't find the model file " )
47
45
return
48
46
}
@@ -53,8 +51,7 @@ class ModuleTest: XCTestCase {
53
51
}
54
52
55
53
func testExecute( ) {
56
- let bundle = Bundle ( for: type ( of: self ) )
57
- guard let modelPath = bundle. path ( forResource: " add " , ofType: " pte " ) else {
54
+ guard let modelPath = resourceBundle. path ( forResource: " add " , ofType: " pte " ) else {
58
55
XCTFail ( " Couldn't find the model file " )
59
56
return
60
57
}
You can’t perform that action at this time.
0 commit comments