Minor fixes

- Fix python version in docs
- Made a note on which CRC32 we're using in the example
- Removed a redundant parameter
This commit is contained in:
Johan B.W. de Vries 2025-04-05 16:19:26 +02:00
parent 96f52a274c
commit 3e916a242e
3 changed files with 4 additions and 2 deletions

View File

@ -32,7 +32,7 @@ make lint typecheck
To compile a Phasm file: To compile a Phasm file:
```sh ```sh
python3.10 -m phasm source.py output.wat python3.12 -m phasm source.py output.wat
``` ```
Additional required tools Additional required tools

View File

@ -1,3 +1,5 @@
# CRC-32/ISO-HDLC
#
# #include <inttypes.h> // uint32_t, uint8_t # #include <inttypes.h> // uint32_t, uint8_t
# #
# uint32_t CRC32(const uint8_t data[], size_t data_length) { # uint32_t CRC32(const uint8_t data[], size_t data_length) {

View File

@ -8,7 +8,7 @@ def test_index():
with open('examples/buffer.py', 'r', encoding='ASCII') as fil: with open('examples/buffer.py', 'r', encoding='ASCII') as fil:
code_py = "\n" + fil.read() code_py = "\n" + fil.read()
result = Suite(code_py).run_code(b'Hello, world!', 5, func_name='index', runtime='wasmtime') result = Suite(code_py).run_code(b'Hello, world!', 5, func_name='index')
assert 44 == result.returned_value assert 44 == result.returned_value
@pytest.mark.slow_integration_test @pytest.mark.slow_integration_test