Skip to content

Commit 9ac174b

Browse files
sylvestrecakebaker
authored andcommitted
factor: add a test for a num-prime issue
1 parent c8181a1 commit 9ac174b

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

tests/by-util/test_factor.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1601,6 +1601,16 @@ fn fails_on_directory() {
16011601
new_ucmd!().pipe_in(".").fails();
16021602
}
16031603

1604+
#[test]
1605+
fn test_large_number() {
1606+
// fixed with num-prime 0.5.0
1607+
// https://github.com/uutils/num-prime/issues/23
1608+
new_ucmd!()
1609+
.arg("4611686018427387896")
1610+
.succeeds()
1611+
.stdout_is("4611686018427387896: 2 2 2 179951 3203431780337\n");
1612+
}
1613+
16041614
#[test]
16051615
fn succeeds_with_numbers_larger_than_u64() {
16061616
new_ucmd!()

0 commit comments

Comments
 (0)