Conversation
|
Please add a test for this :) |
Signed-off-by: Hanif Bin Ariffin <hanif.ariffin.4326@gmail.com>
d2b80e1 to
44d748d
Compare
|
Added some tests based on this coreutils on hbina-ls-refactor-options-module [!?] is 📦 v0.0.6 via 🦀 v1.53.0 took 3s
❯ for i in {0..123456..1}; do echo "a"; done > number.txt && ls -s number.txt
244 number.txt
coreutils on hbina-ls-refactor-options-module [!?] is 📦 v0.0.6 via 🦀 v1.53.0 took 3s
❯ for i in {0..234567..1}; do echo "a"; done > number.txt && ls -s number.txt
460 number.txt
coreutils on hbina-ls-refactor-options-module [!?] is 📦 v0.0.6 via 🦀 v1.53.0 took 7s
❯ for i in {0..345678..1}; do echo "a"; done > number.txt && ls -s number.txt
676 number.txt
coreutils on hbina-ls-refactor-options-module [!?] is 📦 v0.0.6 via 🦀 v1.53.0 took 10s
❯ for i in {0..456789..1}; do echo "a"; done > number.txt && ls -s number.txt
896 number.txt |
|
This test fails: |
Signed-off-by: Hanif Bin Ariffin <hanif.ariffin.4326@gmail.com>
8bfbbf2 to
897ec72
Compare
Signed-off-by: Hanif Bin Ariffin <hanif.ariffin.4326@gmail.com>
Signed-off-by: Hanif Bin Ariffin <hanif.ariffin.4326@gmail.com> Added tests for ls --size Signed-off-by: Hanif Bin Ariffin <hanif.ariffin.4326@gmail.com> Fixed tests for windows Signed-off-by: Hanif Bin Ariffin <hanif.ariffin.4326@gmail.com>
897ec72 to
4039dbd
Compare
Signed-off-by: Hanif Bin Ariffin <hanif.ariffin.4326@gmail.com>
Signed-off-by: Hanif Bin Ariffin <hanif.ariffin.4326@gmail.com>
|
Freebsd is failing on https://github.com/uutils/coreutils/pull/2435/checks?check_run_id=2866873876 |
|
I have no idea how to use FreeBSD. I am trying tho. |
|
We have a few conflicts on it, sorry |
|
Do you have any idea why the fixture doesn't work in FreeBSD, i tried my |
Signed-off-by: Hanif Bin Ariffin <hanif.ariffin.4326@gmail.com>
|
Hey @hbina I'm new to rust and thought I'd implement Can I ask why you're calculating the block sizes instead of using Just curious about why you took this approach, so I can understand it better. Thanks! |
|
I actually mixed in some refactoring as well. I think if your implementation works on Windows and BSD, it might be better. I don't think I am doing anything different than yours. |
|
I just realized my implementation doesn't even compile on windows 😅 |
Implements the flag
-sor--sizeto display the size of file in blocks.Depends on for the refactor #2436