Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add specs for universal floating-point numbers #1826

Merged
merged 4 commits into from
Sep 21, 2022
Merged

Add specs for universal floating-point numbers #1826

merged 4 commits into from
Sep 21, 2022

Conversation

nex3
Copy link
Contributor

@nex3 nex3 commented Sep 15, 2022

Closes #1819

[skip dart-sass]

@@ -55,7 +55,7 @@ a {b: math.acos(1.000000000001)}

<===> one_fuzzy/output.css
a {
b: 0deg;
b: NaNdeg;
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't the case of being fuzzy equal to the bound be handled in math.acos instead of returning NaN ?

Copy link
Contributor

Choose a reason for hiding this comment

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

OK, I missed sass/sass@498fda6 so this is actually expected


<===> up/within_precision/output.css
a {
b: 1;
b: 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not consistent with the test name, which says it would round up

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call; this test is now redundant with down/within_precision, so I'll remove it.

@nex3 nex3 merged commit 2b1ffab into main Sep 21, 2022
@nex3 nex3 deleted the floating-point branch September 21, 2022 21:15
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.

Update tests for floating-point numbers
3 participants