mirror of
https://github.com/polybar/polybar.git
synced 2026-02-17 02:15:25 +00:00
fs: Fix wrong size report
This commit is contained in:
@ -98,7 +98,11 @@ int main() {
|
||||
expect(string_util::filesize_gb(3 * 1024 * 1024 + 200 * 1024, 3) == "3.195 GB");
|
||||
expect(string_util::filesize_gb(3 * 1024 * 1024 + 400 * 1024) == "3 GB");
|
||||
expect(string_util::filesize_gb(3 * 1024 * 1024 + 800 * 1024) == "4 GB");
|
||||
expect(string_util::filesize(3 * 1024 * 1024) == "3 GB");
|
||||
expect(string_util::filesize(3) == "3 B");
|
||||
expect(string_util::filesize(3 * 1024) == "3 KB");
|
||||
expect(string_util::filesize(3 * 1024 * 1024) == "3 MB");
|
||||
expect(string_util::filesize((unsigned long long)3 * 1024 * 1024 * 1024) == "3 GB");
|
||||
expect(string_util::filesize((unsigned long long)3 * 1024 * 1024 * 1024 * 1024) == "3 TB");
|
||||
};
|
||||
|
||||
"sstream"_test = [] {
|
||||
|
||||
Reference in New Issue
Block a user