mirror of
https://github.com/sharkdp/hyperfine.git
synced 2024-09-11 22:17:46 +03:00
Simplify test
This commit is contained in:
parent
066cb732f9
commit
36e57044c9
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user