Skip to content
Myr

Fix markdown export tests

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by sharkdp · committed by sharkdp · parent 8a7d043 · Browse files · 1 file+8 added−8 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+8 added−8 removed

  • other:+8 added−8 removed

1 file+8 added−8 removed

modified:src/hyperfine/export/markdown.rs+8 added-8 removed
108 unmodified lines
109 let formatted = String::from_utf8(exporter.serialize(&timing_results, None).unwrap()).unwrap();110111 let formatted_expected = format!(112 "{}\113| `sleep 0.1` | 105.7 ± 1.6 | 102.3 | 108.0 | 1.0 |114| `sleep 2` | 2005.0 ± 2.0 | 2002.0 | 2008.0 | 19.0 |113| `sleep 0.1` | 105.7 ± 1.6 | 102.3 | 108.0 | 1.00 |114| `sleep 2` | 2005.0 ± 2.0 | 2002.0 | 2008.0 | 18.97 |115",116 table_header("ms".to_string())117 );118
37 unmodified lines
156 let formatted = String::from_utf8(exporter.serialize(&timing_results, None).unwrap()).unwrap();157158 let formatted_expected = format!(159 "{}\160| `sleep 2` | 2.005 ± 0.002 | 2.002 | 2.008 | 19.0 |161| `sleep 0.1` | 0.106 ± 0.002 | 0.102 | 0.108 | 1.0 |160| `sleep 2` | 2.005 ± 0.002 | 2.002 | 2.008 | 18.97 |161| `sleep 0.1` | 0.106 ± 0.002 | 0.102 | 0.108 | 1.00 |162",163 table_header("s".to_string())164 );165
41 unmodified lines
207 .unwrap();208209 let formatted_expected = format!(210 "{}\211| `sleep 0.1` | 0.106 ± 0.002 | 0.102 | 0.108 | 1.0 |212| `sleep 2` | 2.005 ± 0.002 | 2.002 | 2.008 | 19.0 |211| `sleep 0.1` | 0.106 ± 0.002 | 0.102 | 0.108 | 1.00 |212| `sleep 2` | 2.005 ± 0.002 | 2.002 | 2.008 | 18.97 |213",214 table_header("s".to_string())215 );216
42 unmodified lines
259 .unwrap();260261 let formatted_expected = format!(262 "{}\263| `sleep 2` | 2005.0 ± 2.0 | 2002.0 | 2008.0 | 19.0 |264| `sleep 0.1` | 105.7 ± 1.6 | 102.3 | 108.0 | 1.0 |263| `sleep 2` | 2005.0 ± 2.0 | 2002.0 | 2008.0 | 18.97 |264| `sleep 0.1` | 105.7 ± 1.6 | 102.3 | 108.0 | 1.00 |265",266 table_header("ms".to_string())267 );268
2 unmodified lines