Skip to content

Commit

Permalink
Added Unit test for Stripped with color and bold.
Browse files Browse the repository at this point in the history
  • Loading branch information
Roslund committed Jun 19, 2018
1 parent c2dd034 commit 54efa98
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Tests/SwiftyTextTableTests/SwiftyTextTableTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ class SwiftyTextTableTests: XCTestCase {

let c7 = TextTableColumn(header: "Hello World")
XCTAssertEqual(c7.width(), 11)

let c8 = TextTableColumn(header: "\u{001B}[0;31mHello World\u{001B}[0;30m")
XCTAssertEqual(c8.width(), 11)

let c9 = TextTableColumn(header: "\u{001B}[1;31mHello World\u{001B}[0;30m")
XCTAssertEqual(c9.width(), 11)
#endif
}

Expand Down

0 comments on commit 54efa98

Please sign in to comment.