From 45ac2e220b616449bd77755edc52240fb07d5bb4 Mon Sep 17 00:00:00 2001 From: Viktor Persson Date: Sun, 9 Jun 2024 16:44:17 +0200 Subject: [PATCH] Update tests for filename. --- src/filename.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/filename.rs b/src/filename.rs index 5c46b19..37f3382 100644 --- a/src/filename.rs +++ b/src/filename.rs @@ -20,6 +20,15 @@ mod tests { #[test] fn test_filename() -> Result<()> { + assert_eq!( + filename(&read( + "tests/files/ctf_blue_vs_red[ctf5]20240520-1925.mvd.ktxstats.json" + )?) + .unwrap_err() + .to_string(), + "Serverinfo not found".to_string() + ); + assert_eq!( filename(&read( "tests/files/2on2_sf_vs_red[frobodm2]220104-0915.mvd"