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), + ); +}