feat: add testing infrastructure

This commit is contained in:
Patrick 2025-04-14 21:12:17 +02:00
parent d04a0125d5
commit c875dd77fe
No known key found for this signature in database
GPG key ID: 451F95EFB8BECD0F
4 changed files with 661 additions and 1 deletions

8
tests/default.nix Normal file
View file

@ -0,0 +1,8 @@
{
nixt,
pkgs,
...
}:
[
(import ./shift.nix { inherit pkgs nixt; })
]

15
tests/shift.nix Normal file
View file

@ -0,0 +1,15 @@
{
nixt,
pkgs,
...
}:
let
inherit (nixt.lib) block describe it;
inherit (pkgs.lib.bit) left;
in
block ./shift.nix [
(describe "" [
(it "Single left shift" (left 1 1 == 2))
(it "Single left shift" (left 1 2 == 2))
])
]