From 39251b9aa2340114d032c73e0cb1177eb5a98058 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sun, 14 Apr 2024 13:37:10 -0400 Subject: [PATCH] Fix TuskerTests not compiling --- TuskerTests/AttributedStringHelperTests.swift | 26 ------------------- 1 file changed, 26 deletions(-) diff --git a/TuskerTests/AttributedStringHelperTests.swift b/TuskerTests/AttributedStringHelperTests.swift index e3639150..91840689 100644 --- a/TuskerTests/AttributedStringHelperTests.swift +++ b/TuskerTests/AttributedStringHelperTests.swift @@ -47,30 +47,4 @@ class AttributedStringHelperTests: XCTestCase { XCTAssertEqual(d, NSAttributedString(string: "abc")) } - func testCollapsingWhitespace() { - var str = NSAttributedString(string: "test 1\n") - XCTAssertEqual(str.collapsingWhitespace(), NSAttributedString(string: "test 1\n")) - - str = NSAttributedString(string: "test 2 \n") - XCTAssertEqual(str.collapsingWhitespace(), NSAttributedString(string: "test 2\n")) - - str = NSAttributedString(string: "test 3\n ") - XCTAssertEqual(str.collapsingWhitespace(), NSAttributedString(string: "test 3\n")) - - str = NSAttributedString(string: "test 4 \n ") - XCTAssertEqual(str.collapsingWhitespace(), NSAttributedString(string: "test 4\n")) - - str = NSAttributedString(string: "test 5 \n blah") - XCTAssertEqual(str.collapsingWhitespace(), NSAttributedString(string: "test 5\nblah")) - - str = NSAttributedString(string: "\ntest 6") - XCTAssertEqual(str.collapsingWhitespace(), NSAttributedString(string: "\ntest 6")) - - str = NSAttributedString(string: " \ntest 7") - XCTAssertEqual(str.collapsingWhitespace(), NSAttributedString(string: "\ntest 7")) - - str = NSAttributedString(string: " \n test 8") - XCTAssertEqual(str.collapsingWhitespace(), NSAttributedString(string: "\ntest 8")) - } - }