mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
Fix tests
This commit is contained in:
parent
5f6a364433
commit
760cf7e37c
2 changed files with 4 additions and 1 deletions
|
|
@ -12,4 +12,5 @@ pub use config::*;
|
|||
pub use finder::*;
|
||||
pub use mode::*;
|
||||
pub use preview::*;
|
||||
pub use selected::*;
|
||||
pub use tab::*;
|
||||
|
|
|
|||
|
|
@ -48,11 +48,13 @@ impl Selected {
|
|||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// # use yazi_core::tab::Selected;
|
||||
/// # use yazi_shared::fs::Url;
|
||||
/// let mut s = Selected::default();
|
||||
///
|
||||
/// let url1 = Url::from("/a/b/c");
|
||||
/// let url2 = Url::from("/a/b/d");
|
||||
/// assert!(selected.add_many(&[&url1, &url2]));
|
||||
/// assert!(s.add_many(&[&url1, &url2]));
|
||||
/// ```
|
||||
pub fn add_many(&mut self, urls: &[&Url]) -> bool {
|
||||
if urls.is_empty() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue