mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 17:20:08 +00:00
add strip_prefix
test
This commit is contained in:
parent
d08c2fed29
commit
667e42788e
@ -1,4 +1,5 @@
|
|||||||
mod database;
|
mod database;
|
||||||
|
mod test;
|
||||||
mod widget;
|
mod widget;
|
||||||
|
|
||||||
use widget::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…
x
Reference in New Issue
Block a user