Browse Source

test: add format filesize bytes test

main
fdai7381 2 years ago
parent
commit
819da6e7b8
  1. 10
      src/builtins/ls.rs

10
src/builtins/ls.rs

@ -103,3 +103,13 @@ fn right_padding(s: &str, max: usize) -> String {
}
tmp
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_format_filesize_bytes() {
assert_eq!(format_filesize(6969), "6969B");
}
}
Loading…
Cancel
Save