From e81f221910a0c9ac4259a8c671b6f54d3ca466f9 Mon Sep 17 00:00:00 2001 From: Bel LaPointe <153096461+breel-render@users.noreply.github.com> Date: Thu, 23 May 2024 16:11:56 -0400 Subject: [PATCH] gathering info on read --- pttodoer/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pttodoer/src/main.rs b/pttodoer/src/main.rs index d00235d..a52adc3 100644 --- a/pttodoer/src/main.rs +++ b/pttodoer/src/main.rs @@ -92,7 +92,8 @@ mod test_taskss { #[test] fn read_single_file() { - _ = DB::new("./src/testdata/taskss.d/single_file.yaml".to_string()).expect("failed to construct from single file"); + let db = DB::new("./src/testdata/taskss.d/single_file.yaml".to_string()).expect("failed to construct from single file"); + assert_eq!(1, db.0.len()); } }