WebAssembly / spec

WebAssembly specification, reference interpreter, and test suite.
https://webassembly.github.io/spec/
Other
3.13k stars 445 forks source link

[interpreter/test] Fix inconsistent use of float values in `spectest` #1718

Closed f52985 closed 8 months ago

f52985 commented 8 months ago

In the file interpreter/host/spectest.ml, the global float values for F32 and F64 are 666.6, but in the file interpreter/script/js.ml, the float values are 666.

This pull request changes the float values 666 in js.ml into 666.6.

Also, this indicates that the test suite did not contain the test for checking the value of imported global values,

and this pull request also adds new tests in imports.wast test file.

f52985 commented 8 months ago

Fixed test/harness/[a]sync_index.js, accordingly.