tests: update test cases for newer syntax items; drop old artifacts
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I8640148e8e7597924f9c776750c856266a6a6964
This commit is contained in:
parent
ed8f637c99
commit
00a3d2e585
21 changed files with 144 additions and 0 deletions
15
tests/list_concat.nix
Normal file
15
tests/list_concat.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# Test list concatenation operator ++
|
||||
let
|
||||
list1 = [1 2 3];
|
||||
list2 = [4 5 6];
|
||||
empty = [];
|
||||
in {
|
||||
# Basic concatenation
|
||||
combined = list1 ++ list2;
|
||||
|
||||
# Concatenate with empty list
|
||||
with_empty = list1 ++ empty;
|
||||
|
||||
# Nested concatenation
|
||||
triple = [1] ++ [2] ++ [3];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue