fix(tests): fully escape the whitespace-query literal (#144)

A rename patch rode a decoded TAB into the LibrarySearchTests
whitespace-query literal (backslash-n + RAW tab); Swift 6 rejects raw
tabs in single-line string literals ('Unprintable ASCII character'),
which killed the whole-suite build while the pre-rename runs were
green. Both bytes now explicit two-character escapes; control-byte
scan of both touched files clean.
This commit is contained in:
AlexKucera committed 2026-11-03 04:11:14 +01:00
1 parent 488da126d3
commit 7e75d53d79
1 file changed
+1 -1
+1 -1
View File
@@ -53,7 +53,7 @@ struct LibrarySearchTests {
@Test func `empty or whitespace-only query matches nothing`() { @Test func `empty or whitespace-only query matches nothing`() {
let anyPiece = piece("a", title: "Anything") let anyPiece = piece("a", title: "Anything")
#expect(LibrarySearch.results(for: "", in: [anyPiece]) { _ in "Anything" }.isEmpty) #expect(LibrarySearch.results(for: "", in: [anyPiece]) { _ in "Anything" }.isEmpty)
#expect(LibrarySearch.results(for: " \n ", in: [anyPiece]) { _ in "Anything" }.isEmpty) #expect(LibrarySearch.results(for: " \n\t ", in: [anyPiece]) { _ in "Anything" }.isEmpty)
} }
@Test func `unreadable body never matches`() { @Test func `unreadable body never matches`() {