-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Pretty Markdown tables * Update README * Improve coverage
- Loading branch information
Showing
15 changed files
with
127 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
Tests/MarkdownGeneratorTests/Internal/MarkdownTableInternalTests.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// MarkdownTableTests.swift | ||
// MarkdownGeneratorTests | ||
// | ||
// Created by Eneko Alonso on 11/28/18. | ||
// | ||
|
||
import XCTest | ||
@testable import MarkdownGenerator | ||
|
||
class MarkdownTableInternalTests: XCTestCase { | ||
|
||
func testEmptyColumnLength() { | ||
let table = MarkdownTable(headers: [], data: []) | ||
XCTAssertEqual(table.columnLength(values: []), 0) | ||
} | ||
|
||
func testEmptyColumnWidths() { | ||
let table = MarkdownTable(headers: [], data: []) | ||
XCTAssertEqual(table.computeColumnWidths(), []) | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters