mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
add strip_prefix test
This commit is contained in:
parent
d08c2fed29
commit
667e42788e
2 changed files with 7 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
|||
mod database;
|
||||
mod test;
|
||||
mod widget;
|
||||
|
||||
use widget::Widget;
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue