mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
factor: add a test for a num-prime issue
This commit is contained in:
committed by
Daniel Hofstetter
parent
c8181a1a86
commit
9ac174b428
@@ -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!()
|
||||
|
||||
Reference in New Issue
Block a user