tests: add regression test suite; update test fixtures
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I5ccf7cb25394bdcae068b49f66787c3a6a6a6964
This commit is contained in:
parent
f4135a5dca
commit
ddfbc91b58
12 changed files with 186 additions and 2 deletions
|
|
@ -9,8 +9,8 @@ let
|
|||
# With ellipsis (extra fields allowed)
|
||||
f3 = { a, ... }: a * 2;
|
||||
|
||||
# Named pattern
|
||||
f4 = arg@{ a, b }: a + b + arg.c;
|
||||
# Named pattern with ellipsis to allow extra fields
|
||||
f4 = arg@{ a, b, ... }: a + b + arg.c;
|
||||
|
||||
# Simple lambda (not a pattern)
|
||||
f5 = x: x + 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue