shuf is currently failing it's own tests

Open
#189 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Domain
cli, testing

Research direction

Start with src/shuf/shuf_test.v at line 53 and run fn test_random_source to reproduce the assertion failure. Compare the actual output with the expected sequence and verify that the test passes consistently while preserving the intended shuf behavior.

Written by the indexing model from the issue text.

Description

bug

shuf tests are failing like so:

Platform util version: [shuf (GNU coreutils) 8.32
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Paul Eggert.
]
['2', '10', '8', '5', '9']
/home/runner/work/coreutils/coreutils/coreutils/src/shuf/shuf_test.v:53: fn test_random_source
   > assert res.output == '1${eol}4${eol}5${eol}2${eol}3$eol'
     Left value (len: 10): `4
1
3
2
5
`
    Right value (len: 10): `1
4
5
2
3
`
Dominant language
V
Stars
199
Forks
49
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from vlang/coreutils

All issues in vlang/coreutils

Similar issues

More CLI issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.