factor: add a test for a num-prime issue

This commit is contained in:
Sylvestre Ledru
2026-02-25 08:44:15 +01:00
committed by Daniel Hofstetter
parent c8181a1a86
commit 9ac174b428
+10
View File
@@ -1601,6 +1601,16 @@ fn fails_on_directory() {
new_ucmd!().pipe_in(".").fails();
}
#[test]
fn test_large_number() {
// fixed with num-prime 0.5.0
// https://github.com/uutils/num-prime/issues/23
new_ucmd!()
.arg("4611686018427387896")
.succeeds()
.stdout_is("4611686018427387896: 2 2 2 179951 3203431780337\n");
}
#[test]
fn succeeds_with_numbers_larger_than_u64() {
new_ucmd!()