1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2026-01-16 02:01:05 +00:00
uutils-coreutils/tests/by-util
Jeffrey Finkelstein 2ac5dc0a70 seq: compute correct width for scientific notation
Change the way `seq` computes the number of digits needed to print a
number so that it works for inputs given in scientific notation.
Specifically, this commit parses the input string to determine whether
it is an integer, a float in decimal notation, or a float in scientific
notation, and then computes the number of integral digits and the number
of fractional digits based on that. This also supports floating point
negative zero, expressed in both decimal and scientific notation.
2021-09-17 23:49:54 -04:00
..
test_arch.rs Fix some tests to not use CmdResult fields 2021-04-10 23:30:50 +03:00
test_base32.rs tests ~ fix tests for new execution_phrase!() and usage phrasing 2021-08-14 14:01:34 +02:00
test_base64.rs base32/64: adjust error message to match gnu 2021-08-04 00:04:25 +02:00
test_basename.rs Merge pull request #2534 from jfinkels/basename-handle-slashes 2021-08-22 22:49:30 +02:00
test_basenc.rs basenc: add utility 2021-08-06 00:07:19 +02:00
test_cat.rs Close file descriptors of pipes after use (#2591) 2021-08-24 12:00:07 +02:00
test_chcon.rs chcon: added implementation and integration tests 2021-08-05 22:57:57 -04:00
test_chgrp.rs uucore/perms: take traverse_symlinks into account 2021-09-03 00:50:04 +02:00
test_chmod.rs chmod: add check for quiet 2021-08-25 13:52:09 +02:00
test_chown.rs chown: support '.' as 'user.group' separator (like ':') (#2638) 2021-09-10 08:15:23 +02:00
test_chroot.rs Update message quoting and filename printing 2021-09-07 19:49:01 +02:00
test_cksum.rs Update message quoting and filename printing 2021-09-07 19:49:01 +02:00
test_comm.rs refactor ~ cargo make format 2021-05-31 08:23:58 -05:00
test_cp.rs Fixed a warning on freebdsd: 2021-09-12 23:14:34 +02:00
test_csplit.rs tests ~ refactor/polish spelling (comments, names, and exceptions) 2021-05-31 08:23:57 -05:00
test_cut.rs tests ~ fix spelling errors 2021-06-19 18:40:22 -05:00
test_date.rs fix some issues with locale (replace "LANGUAGE" with "LC_ALL") 2021-06-23 11:30:28 +02:00
test_dd.rs Removes unused macros from windows & macos builds 2021-08-04 12:47:03 -07:00
test_df.rs rustfmt the recent change 2021-05-08 13:13:52 +02:00
test_dircolors.rs refactor ~ cargo make format 2021-05-31 08:23:58 -05:00
test_dirname.rs tr/dirname: fix clap short_alias 2021-04-30 20:19:43 +02:00
test_du.rs test_du: ignore unsupported --time=birth 2021-07-19 06:55:11 +07:00
test_echo.rs refactor ~ cargo make format 2021-05-31 08:23:58 -05:00
test_env.rs tests ~ fix clippy complaint (clippy::bool_assert_comparision) 2021-06-06 19:17:18 -05:00
test_expand.rs Silent the spell checker on a test examples 2021-07-31 10:38:32 +02:00
test_expr.rs expr: support arbitrary precision integers (#2271) 2021-05-29 23:25:23 +02:00
test_factor.rs factor: prevent writing incomplete lines 2021-08-10 00:14:51 +02:00
test_false.rs tests ~ reorganize tests 2020-06-01 18:30:04 -05:00
test_fmt.rs tests: delete 'error:' prefix from the tests 2021-05-26 02:45:53 +03:00
test_fold.rs refactor ~ cargo make format 2021-05-31 08:23:58 -05:00
test_groups.rs tests: fix tests for CICD environment 2021-07-08 11:17:18 +02:00
test_hashsum.rs hashsum: support --check for algorithms with variable output length (#2583) 2021-08-23 18:35:19 +02:00
test_head.rs tests(head): change file mode from 755 to 644 2021-08-21 22:59:59 -04:00
test_hostid.rs Refactored tests for more utilities 2021-04-18 02:32:43 +03:00
test_hostname.rs silent the failed tests for now on freebsd 2021-08-24 09:32:27 +02:00
test_id.rs id: fix error handling for id_print() 2021-07-13 11:25:03 +02:00
test_install.rs Remove some warnings on freebsd 2021-08-28 15:06:44 +02:00
test_join.rs join: make autoformat actually construct a format 2021-08-31 23:55:15 +02:00
test_kill.rs refactor ~ cargo make format 2021-05-31 08:23:58 -05:00
test_link.rs tests: delete 'error:' prefix from the tests 2021-05-26 02:45:53 +03:00
test_ln.rs ln: don't return an empty path in relative_path 2021-06-18 11:53:29 +02:00
test_logname.rs tests: delete 'error:' prefix from the tests 2021-05-26 02:45:53 +03:00
test_ls.rs Merge pull request #2651 from jhscheer/ls_small_fix_for_test_from_2627 2021-09-13 18:35:32 +02:00
test_mkdir.rs fix a lot of clippy warnings 2021-05-29 15:11:22 +02:00
test_mkfifo.rs tests: delete 'error:' prefix from the tests 2021-05-26 02:45:53 +03:00
test_mknod.rs Migrate mknod to clap, closes #2051 (#2056) 2021-05-05 22:59:40 +02:00
test_mktemp.rs mktemp: adapt to standardized error handling 2021-06-28 13:55:55 +02:00
test_more.rs refactor ~ revert to single quotes for "Try '{0 --help'" 2021-08-14 17:22:09 +02:00
test_mv.rs refactor ~ revert to single quotes for "Try '{0 --help'" 2021-08-14 17:22:09 +02:00
test_nice.rs refactor ~ revert to single quotes for "Try '{0 --help'" 2021-08-14 17:22:09 +02:00
test_nl.rs tests ~ refactor/polish spelling (comments, names, and exceptions) 2021-05-31 08:23:57 -05:00
test_nohup.rs nohup: move from getopts to clap (#1871) 2021-03-22 20:09:00 +01:00
test_nproc.rs Refactored tests for more utilities 2021-04-18 02:32:43 +03:00
test_numfmt.rs fix some issues with locale (replace "LANGUAGE" with "LC_ALL") 2021-06-23 11:30:28 +02:00
test_od.rs od: fix reading from file while supplying a format argument 2021-08-06 15:07:38 -06:00
test_paste.rs fix a lot of clippy warnings 2021-05-29 15:11:22 +02:00
test_pathchk.rs tests ~ fix cargo clippy complaint (clippy::needless_borrow) 2021-06-06 19:28:25 -05:00
test_pinky.rs tests/common: refactor: use TestScenario instead of util_name for expected_result() 2021-07-07 22:46:16 +02:00
test_pr.rs pr: reduce test flakiness 2021-08-12 17:03:06 +02:00
test_printenv.rs Refactored tests for more utilities 2021-04-18 02:32:43 +03:00
test_printf.rs refactor ~ cargo make format 2021-05-31 08:23:58 -05:00
test_ptx.rs tests ~ refactor/polish spelling (comments, names, and exceptions) 2021-05-31 08:23:57 -05:00
test_pwd.rs pwd: Properly resolve logical working directory (#2604) 2021-08-28 22:31:20 +02:00
test_readlink.rs Add Physical mode to realpath 2021-08-01 17:06:09 +01:00
test_realpath.rs Add -e/-m to realpath 2021-09-05 22:50:23 +02:00
test_relpath.rs refactor ~ cargo make format 2021-05-31 08:23:58 -05:00
test_rm.rs tests ~ fix tests for new execution_phrase!() and usage phrasing 2021-08-14 14:01:34 +02:00
test_rmdir.rs rmdir: match GNU 2021-08-28 02:26:01 +02:00
test_runcon.rs runcon: added implementation and tests. 2021-08-22 21:59:41 +02:00
test_seq.rs seq: compute correct width for scientific notation 2021-09-17 23:49:54 -04:00
test_shred.rs shred, stat, tail: Remove direct usage of CmdResult fields in test 2021-04-17 18:50:41 +03:00
test_shuf.rs tests ~ refactor/polish spelling (comments, names, and exceptions) 2021-05-31 08:23:57 -05:00
test_sleep.rs tests/sleep: fmt 2021-07-12 20:21:20 +02:00
test_sort.rs Replace backtick quoting 2021-09-07 20:16:45 +02:00
test_split.rs fix some issues with locale (replace "LANGUAGE" with "LC_ALL") 2021-06-23 11:30:28 +02:00
test_stat.rs NORMAL_FORMAT_STR is also used for freebsd 2021-08-24 09:32:27 +02:00
test_stdbuf.rs refactor ~ revert to single quotes for "Try '{0 --help'" 2021-08-14 17:22:09 +02:00
test_sum.rs Update message quoting and filename printing 2021-09-07 19:49:01 +02:00
test_sync.rs test: fix tests 2021-05-26 03:07:49 +03:00
test_tac.rs tac: add support for --regex option to tac 2021-09-11 22:54:55 -04:00
test_tail.rs tail: add fixes to pass "gnu/tests/tail-2/tail-c.sh" from GNU's test suite 2021-09-08 13:10:19 +02:00
test_tee.rs tee: refactor tests for #1982 2021-04-05 23:05:07 +02:00
test_test.rs Update message quoting and filename printing 2021-09-07 19:49:01 +02:00
test_timeout.rs timeout: disable timeout if it is set to zero 2021-06-10 21:24:43 +02:00
test_touch.rs touch: add --ref as an alias (#2641) 2021-09-09 21:48:17 +02:00
test_tr.rs Silent 'test_more_than_2_sets' on freebsd 2021-09-05 18:54:43 +02:00
test_true.rs tests ~ reorganize tests 2020-06-01 18:30:04 -05:00
test_truncate.rs fix some issues with locale (replace "LANGUAGE" with "LC_ALL") 2021-06-23 11:30:28 +02:00
test_tsort.rs refactor tests (#1982) 2021-04-23 02:28:46 +02:00
test_tty.rs tty: Make test_stdout_fail() less flaky 2021-09-10 19:29:27 +02:00
test_uname.rs tests/uname: add --operating-system test 2021-07-06 23:40:38 +01:00
test_unexpand.rs tests ~ refactor/polish spelling (comments, names, and exceptions) 2021-05-31 08:23:57 -05:00
test_uniq.rs fix a lot of clippy warnings 2021-05-29 15:11:22 +02:00
test_unlink.rs unlink: Simplify, remove unsafe, move to core 2021-09-10 21:50:38 +02:00
test_uptime.rs tests ~ refactor/polish spelling (comments, names, and exceptions) 2021-05-31 08:23:57 -05:00
test_users.rs fix some issues with locale (replace "LANGUAGE" with "LC_ALL") 2021-06-23 11:30:28 +02:00
test_wc.rs wc: Adjust expected report for directories for Windows 2021-08-26 01:38:16 +02:00
test_who.rs tests/common: refactor: use TestScenario instead of util_name for expected_result() 2021-07-07 22:46:16 +02:00
test_whoami.rs fix various clippy issues 2021-07-11 11:22:33 +02:00
test_yes.rs yes: Cleanup 2021-08-25 13:45:44 +02:00