]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: test: ensure whitespace ignored when parsing numbers
authorPádraig Brady <P@draigBrady.com>
Wed, 21 Jan 2026 13:45:53 +0000 (13:45 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 21 Jan 2026 13:51:39 +0000 (13:51 +0000)
* tests/test/test.pl: Add a test case.

tests/test/test.pl

index caea4ee56eccb0d829333d7ab6eaa514c7892339..1de18ba7eb16311f6ff9897b828914bfd38cc5c7 100755 (executable)
@@ -161,6 +161,7 @@ my @Tests =
   ['eq-4', qw(8 -eq 9), {EXIT=>1}],
   ['eq-5', qw(1 -eq 0), {EXIT=>1}],
   ['eq-6', "$limits->{UINTMAX_OFLOW} -eq 0", {EXIT=>1}],
+  ['eq-7', qw(0 -eq ' 0 ')],
 
   ['gt-1', qw(5 -gt 5), {EXIT=>1}],
   ['gt-2', qw(5 -gt 4)],