From 3e916a242e3834f75f52a704ff5a0af9a7d154fa Mon Sep 17 00:00:00 2001 From: "Johan B.W. de Vries" Date: Sat, 5 Apr 2025 16:19:26 +0200 Subject: [PATCH] Minor fixes - Fix python version in docs - Made a note on which CRC32 we're using in the example - Removed a redundant parameter --- README.md | 2 +- examples/crc32.py | 2 ++ tests/integration/test_examples/test_buffer.py | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a5af8d8..d71d61b 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ make lint typecheck To compile a Phasm file: ```sh -python3.10 -m phasm source.py output.wat +python3.12 -m phasm source.py output.wat ``` Additional required tools diff --git a/examples/crc32.py b/examples/crc32.py index 294b3c5..a3d7e37 100644 --- a/examples/crc32.py +++ b/examples/crc32.py @@ -1,3 +1,5 @@ +# CRC-32/ISO-HDLC +# # #include // uint32_t, uint8_t # # uint32_t CRC32(const uint8_t data[], size_t data_length) { diff --git a/tests/integration/test_examples/test_buffer.py b/tests/integration/test_examples/test_buffer.py index 78622ea..95549ac 100644 --- a/tests/integration/test_examples/test_buffer.py +++ b/tests/integration/test_examples/test_buffer.py @@ -8,7 +8,7 @@ def test_index(): with open('examples/buffer.py', 'r', encoding='ASCII') as fil: 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 @pytest.mark.slow_integration_test