Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fd91a1c

Browse files
docs: fix chart title
Signed-off-by: Henry Gressmann <[email protected]>
1 parent 716b763 commit fd91a1c

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

crates/tinywasm/tests/charts/progress.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use std::path::Path;
66

77
const FONT: &str = "Victor Mono";
88

9-
pub fn create_progress_chart(csv_path: &Path, output_path: &Path) -> Result<()> {
9+
pub fn create_progress_chart(name: &str, csv_path: &Path, output_path: &Path) -> Result<()> {
1010
let file = File::open(csv_path)?;
1111
let reader = io::BufReader::new(file);
1212

@@ -41,7 +41,7 @@ pub fn create_progress_chart(csv_path: &Path, output_path: &Path) -> Result<()>
4141
.y_label_area_size(70)
4242
.margin(10)
4343
.margin_top(20)
44-
.caption("MVP TESTSUITE", (FONT, 30.0, FontStyle::Bold))
44+
.caption(name, (FONT, 30.0, FontStyle::Bold))
4545
.build_cartesian_2d((0..(versions.len() - 1) as u32).into_segmented(), 0..max_tests)?;
4646

4747
chart

crates/tinywasm/tests/generate-charts.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@ fn generate_charts() -> Result<()> {
1212
}
1313

1414
charts::create_progress_chart(
15+
"WebAssembly 1.0 Test Suite",
1516
std::path::Path::new("./tests/generated/mvp.csv"),
1617
std::path::Path::new("./tests/generated/progress-mvp.svg"),
1718
)?;
1819

1920
println!("created progress chart: ./tests/generated/progress-mvp.svg");
2021

2122
charts::create_progress_chart(
23+
"WebAssembly 2.0 Test Suite",
2224
std::path::Path::new("./tests/generated/2.0.csv"),
2325
std::path::Path::new("./tests/generated/progress-2.0.svg"),
2426
)?;

crates/tinywasm/tests/generated/progress-2.0.svg

Lines changed: 1 addition & 1 deletion
Loading

crates/tinywasm/tests/generated/progress-mvp.svg

Lines changed: 4 additions & 4 deletions
Loading

0 commit comments

Comments
 (0)