Get test bundle from Constants and make them a class

This commit is contained in:
Timofey Solomko
2017-11-27 21:35:16 +03:00
parent c090d37c43
commit 2ef81dc2b4
+2 -2
View File
@@ -5,7 +5,7 @@
import Foundation
struct Constants {
class Constants {
/* Contents of test files:
- test1: text file with "Hello, World!\n".
@@ -42,6 +42,6 @@ struct Constants {
return testBundle.url(forResource: name, withExtension: "answer")
}
private static let testBundle: Bundle = Bundle(for: DeflateTests.self)
private static let testBundle: Bundle = Bundle(for: Constants.self)
}