tests: initial test suite for IR compiler

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I70cd1dfa45add9df58a44add69fbd30a6a6a6964
This commit is contained in:
raf 2026-02-21 20:48:08 +03:00
commit 49f64c9c98
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
28 changed files with 151 additions and 0 deletions

17
tests/inherit.nix Normal file
View file

@ -0,0 +1,17 @@
# Test inherit keyword
let
x = 10;
y = 20;
attrs = { a = 1; b = 2; c = 3; };
in
{
# Basic inherit from outer scope
inherit x y;
# Inherit from expression
inherit (attrs) a b;
# Mixed
z = 30;
inherit (attrs) c;
}