Skip to content

Commit

Permalink
Silence false typo reports in mangling tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kyouko-taiga committed Aug 30, 2024
1 parent d375174 commit a4226de
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
10 changes: 10 additions & 0 deletions Tests/ManglingTests/MangledStrings.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
extension ManglingTests {

static let inputCase =
"mFxF0R0UfDynamicBufferA10sF06init1lTR736selfpT2bTa" +
"TK1Z2gTK1G8HeadergTK1G9ElementacapacitypT1aTR2Zqin" +
"itializing_header_withpT1lTgTrKG3E10pT2K4R7R7YVQOu" +

Check warning on line 6 in Tests/ManglingTests/MangledStrings.swift

View workflow job for this annotation

GitHub Actions / Spell Check using typos

"itializing" should be "initializing".
".fZlTtT112lTtT215rT1K9dinit_headerrT1Ke10pT2tT215K" +

Check warning on line 7 in Tests/ManglingTests/MangledStrings.swift

View workflow job for this annotation

GitHub Actions / Spell Check using typos

"headerr" should be "header".
"9gpayload_headerK4R70R72K9tT13cKj"

}
8 changes: 1 addition & 7 deletions Tests/ManglingTests/ManglingTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,7 @@ final class ManglingTests: XCTestCase {
}

func testMonomorphized() {
let m =
"mFxF0R0UfDynamicBufferA10sF06init1lTR736selfpT2bTa" +
"TK1Z2gTK1G8HeadergTK1G9ElementacapacitypT1aTR2Zqin" +
"itializing_header_withpT1lTgTrKG3E10pT2K4R7R7YVQOu" +
".fZlTtT112lTtT215rT1K9dinit_headerrT1Ke10pT2tT215K" +
"9gpayload_headerK4R70R72K9tT13cKj"
XCTAssertNotNil(DemangledSymbol(m))
XCTAssertNotNil(DemangledSymbol(Self.inputCase))
}

}
Expand Down

0 comments on commit a4226de

Please sign in to comment.