Commit Graph
59 Commits
Author SHA1 Message Date
Sylvestre LedruandGitHub b2c4e0c125 factor: emit GNU 9.11 'is not a valid positive integer' for stdin input (#12137)
* factor: emit GNU's 'X is not a valid positive integer' wording

GNU's factor.c routes both stdin and command-line input through the same
print_factors() and reports invalid input as
  factor: 'X' is not a valid positive integer
Match that wording exactly so the new GNU 9.11 'nul4' test passes and
the 'cont' test no longer needs the warning/invalid-digit hunk in
tests_factor_factor.pl.patch.

* Add 'cmdline' to spell-checker ignore list
2026-05-04 09:31:59 +02:00
AnthonyandGitHub 36ac85b1f3 tests: add WASI integration test support via wasmtime 2026-04-12 15:19:04 +02:00
xtqqczzeandDaniel Hofstetter fb44ce342a chore(deps): update rand and related crates to version 0.10 2026-03-11 11:03:09 +01:00
Guillem L. JaraandGitHub d45c48bee0 Merge pull request #11190 from Alonely0/factorio
factor: fix crash on malformed input
2026-03-11 10:50:48 +01:00
Yotam MediniandGitHub f52e3e800b factor: trim also null-chars (#11182)
* fix bug #11097: factor: trim also null-chars

* for factor: add test_trim_null_chars

* test_factor: pipe_in instead of pipe_in_fixture
2026-03-04 09:54:17 +01:00
Sylvestre LedruandDaniel Hofstetter 9ac174b428 factor: add a test for a num-prime issue 2026-02-25 08:44:15 +01:00
Aaron AngandSylvestre Ledru 24a8ff0328 fix: reduce factor parallel test runtime 2026-01-09 07:58:58 +01:00
Daniel Hofstetter fddfa1e763 factor: fix two "unused import" warnings in test 2025-08-28 10:15:53 +02:00
Sylvestre Ledru 37c633ecc6 Port factor for translation 2025-08-13 14:15:56 +02:00
Yuri Astrakhan d77470be2d fix clippy issues 2025-04-08 18:25:29 -04:00
Yuri Astrakhan 170831ed2b chore: remove unneeded parens
Keeps code a bit more readable
2025-04-08 18:19:03 -04:00
Daniel Hofstetter a8a43f73b0 clippy: fix errors from unnecessary_semicolon lint 2025-04-03 14:24:16 +02:00
Sylvestre Ledru a0179ea239 uutests: adjust the tests to use them 2025-03-28 21:40:31 +01:00
Sylvestre Ledru a85539f530 Run cargo fmt on the tree 2025-03-24 21:33:12 +01:00
Daniel Hofstetter df4dfea852 tests: replace run() with succeeds() or fails() 2025-03-09 16:53:56 +01:00
Sylvestre Ledru 3e1adf40ee Use the new function 'fails_with_code' v2 2025-03-04 09:27:47 +01:00
Sylvestre Ledru 18cb7dcf9e Use the new function fails_with_code
Done with
```
$ perl -0777 -i -pe 's/([ \t]+)\.fails\(\)[ \t]*\n[ \t]+\.no_stdout\(\)[ \t]*\n[ \t]+\.code_is\(([0-9]+)\);/\1.fails_with_code(\2)\n\1.no_stdout();/gs' *rs
$ sed -i -e "s|.fails()(.*).code_is(|.fails_with_code(|g" *rs
$ perl -0777 -i -pe 's/([ \t]+)\.fails\(\)[ \t]*\n[ \t]+\.code_is\(([0-9]+)\);/\1.fails_with_code(\2);/gs' *rs
$ perl -0777 -i -pe 's/([ \t]+)\.fails\(\)(.*?)[ \t]+\.code_is\(([0-9]+)\);/\1.fails_with_code(\3)\2;/gs' *rs
...
```
2025-03-01 17:26:20 +01:00
Daniel Hofstetter 46beccd409 factor: adapt tests to API changes of rand 2025-01-30 08:52:42 +01:00
n4n5 ab67947321 fix clippy tests 2024-06-30 16:27:08 +02:00
Ulrich Hornung d202baba97 use num_prime for factorisation to fix gnu test 2024-04-21 11:24:25 +02:00
Paolo Barbolini 9e040a3df1 chore(deps): drop conv dev-dependency 2024-03-31 22:51:24 +02:00
Ben Wiederhake 388021833e factor: correctly handle repeated flag 2024-03-24 00:07:08 +01:00
kralo 3eba95728c factor: remove clippy exceptions by reformatting "unreadable literals"
Closes: #5884
2024-01-27 17:23:44 +01:00
Sylvestre Ledru 4f33a375cd factor: handle the '< .' arg 2024-01-14 23:26:57 +01:00
Terts Diepraam 9a67393c44 factor: short circuit on write error, but not on parse error 2023-08-30 18:51:29 +02:00