From 211cca50b8537174a984ff58192969f594ab9241 Mon Sep 17 00:00:00 2001 From: sofia Date: Thu, 24 Jul 2025 22:06:58 +0300 Subject: [PATCH] Update readme and tests --- README.md | 2 +- reid/tests/e2e.rs | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 67a9f8a..48ce1b8 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ Big features that I want later but are not necessary: Smaller features: - ~~Hex-numbers~~ - Bitwise operations -- Easier way to initialize arrays with a single value +- ~~Easier way to initialize arrays with a single value~~ - ~~Void-returns (`return;` for void-returning functions)~~ - ~~Only include standard library at all if it is imported~~ - Lexical scopes for Debug Information diff --git a/reid/tests/e2e.rs b/reid/tests/e2e.rs index 839adb6..d2aa144 100644 --- a/reid/tests/e2e.rs +++ b/reid/tests/e2e.rs @@ -182,3 +182,12 @@ fn custom_binop_compiles_well() { Some(21), ); } + +#[test] +fn array_short_compiles_well() { + test( + include_str!("../../examples/array_short.reid"), + "test", + Some(5), + ); +}