add strip_prefix test

This commit is contained in:
yggverse 2024-12-13 03:55:05 +02:00
parent d08c2fed29
commit 667e42788e
2 changed files with 7 additions and 0 deletions

View File

@ -1,4 +1,5 @@
mod database; mod database;
mod test;
mod widget; mod widget;
use widget::Widget; use widget::Widget;

View File

@ -0,0 +1,6 @@
#[cfg(test)]
#[test]
fn strip_prefix() {
assert_eq!(super::strip_prefix("source:gemini".into()), "gemini");
assert_eq!(super::strip_prefix("download:gemini".into()), "gemini");
}