aboutsummaryrefslogtreecommitdiffstats
path: root/tests/common
diff options
context:
space:
mode:
Diffstat (limited to 'tests/common')
-rw-r--r--tests/common/mod.rs2
1 files changed, 1 insertions, 1 deletions
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::<Result<Vec<String>, _>>()
.unwrap();
- let body: Option<String> = if body.len() <= 1 {
+ let body: Option<String> = if body.len() == 0 {
None
} else {
Some(body.join("\n"))