From 0d2e3a4dd71a07a22012010abdbf6a7ee6a6d1ca Mon Sep 17 00:00:00 2001 From: David Peter Date: Sun, 29 Dec 2024 13:38:54 +0100 Subject: [PATCH] Simplify CSV tests --- src/export/csv.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/export/csv.rs b/src/export/csv.rs index 8b5570a..a0cf8aa 100644 --- a/src/export/csv.rs +++ b/src/export/csv.rs @@ -67,8 +67,8 @@ fn test_csv() { let results = vec![ BenchmarkResult { - command: String::from("FOO=one BAR=two command | 1"), - command_with_unused_parameters: String::from("FOO=one BAR=two command | 1"), + command: String::from("command_a"), + command_with_unused_parameters: String::from("command_a"), mean: 1.0, stddev: Some(2.0), median: 1.0, @@ -87,8 +87,8 @@ fn test_csv() { }, }, BenchmarkResult { - command: String::from("FOO=one BAR=seven command | 2"), - command_with_unused_parameters: String::from("FOO=one BAR=seven command | 2"), + command: String::from("command_b"), + command_with_unused_parameters: String::from("command_b"), mean: 11.0, stddev: Some(12.0), median: 11.0, @@ -117,7 +117,7 @@ fn test_csv() { insta::assert_snapshot!(actual, @r#" command,mean,stddev,median,user,system,min,max,parameter_bar,parameter_foo - FOO=one BAR=two command | 1,1,2,1,3,4,5,6,two,one - FOO=one BAR=seven command | 2,11,12,11,13,14,15,16.5,seven,one + command_a,1,2,1,3,4,5,6,two,one + command_b,11,12,11,13,14,15,16.5,seven,one "#); }