Skip to content

Commit

Permalink
debug: add file list check
Browse files Browse the repository at this point in the history
  • Loading branch information
ensan-hcl committed Nov 30, 2024
1 parent 8ea552f commit cd6b5fd
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ final class TextReplacerTests: XCTestCase {
XCTAssertEqual(Bundle.module.resourceURL, nil)
let resourcesURL = Bundle.module.resourceURL!
let emojiDictionaryURL = resourcesURL.appendingPathComponent("EmojiDictionary", isDirectory: true)
XCTAssertEqual(try! FileManager.default.contentsOfDirectory(at: emojiDictionaryURL, includingPropertiesForKeys: nil), [])
XCTAssertNotEqual(try! FileManager.default.contentsOfDirectory(at: emojiDictionaryURL, includingPropertiesForKeys: nil), [])
XCTAssertEqual(try! FileManager.default.contentsOfDirectory(at: resourcesURL, includingPropertiesForKeys: nil), [])
let emojiFileURL = emojiDictionaryURL.appendingPathComponent("emoji_all_E15.1.txt", isDirectory: false)
XCTAssertEqual(try! String.init(contentsOf: emojiFileURL, encoding: .utf8).count, 0)

let textReplacer = TextReplacer.withDefaultEmojiDictionary()
XCTAssertFalse(textReplacer.isEmpty)
Expand Down

0 comments on commit cd6b5fd

Please sign in to comment.