Skip to content

Commit

Permalink
Update tests for filename.
Browse files Browse the repository at this point in the history
  • Loading branch information
vikpe committed Jun 9, 2024
1 parent e646467 commit 45ac2e2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/filename.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 45ac2e2

Please sign in to comment.