Skip to content

adding some tests#17

Merged
davassi merged 4 commits intomasterfrom
gd_fixes2
Jun 7, 2025
Merged

adding some tests#17
davassi merged 4 commits intomasterfrom
gd_fixes2

Conversation

@davassi
Copy link
Owner

@davassi davassi commented Jun 7, 2025

No description provided.

@davassi davassi requested a review from Copilot June 7, 2025 10:16
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a suite of integration tests to verify the correct evaluation of various mathematical expressions.

  • Added multiple test cases using resolve_decimal! and resolve_natural! with diverse expressions.
  • Enhanced error case validation with resolve_err! tests.

resolve_decimal!("sqrt(abs(-16))", 4.0);
resolve_decimal!("max(1+2,2+2)", 6.0);
resolve_decimal!("min(3!,10)", 3.0);
resolve_decimal!("max(2^3,3^2)", 19683.0);
Copy link

Copilot AI Jun 7, 2025

Choose a reason for hiding this comment

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

The expected result for max(2^3,3^2) appears incorrect; evaluating 2^3 and 3^2 gives 8 and 9 respectively, so the maximum should be 9.

Suggested change
resolve_decimal!("max(2^3,3^2)", 19683.0);
resolve_decimal!("max(2^3,3^2)", 9.0);

Copilot uses AI. Check for mistakes.
@davassi davassi merged commit a5af854 into master Jun 7, 2025
1 check passed
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.

1 participant