Skip to content

Update the pgaux.t test for subtests and add some new#1428

Open
pstaabp wants to merge 1 commit into
openwebwork:PG-2.21from
pstaabp:update-pgaux-test
Open

Update the pgaux.t test for subtests and add some new#1428
pstaabp wants to merge 1 commit into
openwebwork:PG-2.21from
pstaabp:update-pgaux-test

Conversation

@pstaabp
Copy link
Copy Markdown
Member

@pstaabp pstaabp commented Jun 3, 2026

Add some new rounding test that will be updated with #1422. This also switches tests to subtest for organization.

rounding tests to prep for new rounding function.
Comment thread t/macros/pgaux.t

is(Round(15.793, -1), 20, "Round to -1 digits (nearest 10)");

# tests that round handles some cases related to precision loss in calculations
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At this point, without the proposed new Round, this comment is perhaps incorrect. The cases below show that Round doe not handle that sort of thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants