mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-02 17:11:28 +00:00
Simplify test
This commit is contained in:
1 parent
066cb732f9
commit
36e57044c9
1 file changed
+2
-4
@@ -41,10 +41,8 @@ fn test_markdown_formatter_table_data() {
|
|||||||
fn test_markdown_formatter_table_divider() {
|
fn test_markdown_formatter_table_divider() {
|
||||||
let formatter = MarkdownExporter::default();
|
let formatter = MarkdownExporter::default();
|
||||||
|
|
||||||
let actual = formatter.table_divider(&[Alignment::Left, Alignment::Right, Alignment::Left]);
|
let divider = formatter.table_divider(&[Alignment::Left, Alignment::Right, Alignment::Left]);
|
||||||
let expect = "|:---|---:|:---|\n";
|
assert_eq!(divider, "|:---|---:|:---|\n");
|
||||||
|
|
||||||
assert_eq!(expect, actual);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Test helper function to create unit-based header and horizontal line
|
/// Test helper function to create unit-based header and horizontal line
|
||||||
|
|||||||
Reference in new issue
Block a user