From 51417bfeffc8dbbb417bfb352776a48204d06fbc Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 17 Dec 2020 21:03:05 -0800 Subject: tests: off-by-one in helper resulting in some tests not running --- tests/common/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/common') diff --git a/tests/common/mod.rs b/tests/common/mod.rs index 2d06d81..7773735 100644 --- a/tests/common/mod.rs +++ b/tests/common/mod.rs @@ -22,7 +22,7 @@ pub fn load_parts(path: &Path) -> ExampleParts { .map(|v| v.into()) .collect::, _>>() .unwrap(); - let body: Option = if body.len() <= 1 { + let body: Option = if body.len() == 0 { None } else { Some(body.join("\n")) -- cgit v1.2.3