Skip to content

Misc tests #288

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

Merged
merged 7 commits into from
May 18, 2016
Merged

Misc tests #288

merged 7 commits into from
May 18, 2016

Conversation

sunfishcode
Copy link
Member

A few more floating point tests, but also includes a test for memory size overflow.

@@ -31,6 +32,10 @@
(module (memory 1 2 (segment 0 "a") (segment 2 "b") (segment 1 "c")))
"data segment not disjoint and ordered"
)
(assert_invalid
(module (memory 0 65536))
Copy link
Member

Choose a reason for hiding this comment

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

How about also adding a test with a value that overflows the 32-bit (resp 64-bit range), to check that there is no accidental wrap-around?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok; tests added.

@rossberg
Copy link
Member

lgtm

@sunfishcode sunfishcode merged commit 9d26e51 into master May 18, 2016
@sunfishcode sunfishcode deleted the misc-tests branch May 18, 2016 02:47
ngzhian added a commit to ngzhian/spec that referenced this pull request Nov 4, 2021
The error messages don't match the tests yet (simd_lane.wast), that
still needs to be worked out in WebAssembly#287.
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