Page MenuHomeFreeBSD

Add simple factor/primes regression tests
ClosedPublic

Authored by ngie on May 27 2023, 4:53 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 14, 5:30 PM
Unknown Object (File)
Mon, Apr 8, 2:00 PM
Unknown Object (File)
Mar 15 2024, 1:12 AM
Unknown Object (File)
Feb 11 2024, 9:38 PM
Unknown Object (File)
Feb 11 2024, 9:33 AM
Unknown Object (File)
Jan 30 2024, 7:52 PM
Unknown Object (File)
Jan 14 2024, 9:32 AM
Unknown Object (File)
Dec 25 2023, 2:10 PM
Subscribers

Details

Summary

This will help ensure that the change following this
one to support OpenSSL 3 is sane.

MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ngie requested review of this revision.May 27 2023, 4:53 AM
ngie added a reviewer: tests.
usr.bin/factor/tests/factor_tests.sh
6

"All rights reserved." has been removed from our standard copyright template. It's unnecessary (but causes no harm if it's there).

36

it seems like factor should reject non-integer args instead

This revision is now accepted and ready to land.May 27 2023, 4:21 PM

anyhow, I think it's reasonable to commit this version and update if/when we change factor to disallow non-integer args

usr.bin/factor/tests/factor_tests.sh
36

Agreed. The fact that factor/primes support non-base 10 values, e.g., a, z, etc, is unexpected/undesirable.

This revision was automatically updated to reflect the committed changes.