feat: add testing infrastructure
This commit is contained in:
parent
d04a0125d5
commit
c875dd77fe
4 changed files with 661 additions and 1 deletions
8
tests/default.nix
Normal file
8
tests/default.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
nixt,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
[
|
||||
(import ./shift.nix { inherit pkgs nixt; })
|
||||
]
|
15
tests/shift.nix
Normal file
15
tests/shift.nix
Normal 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))
|
||||
])
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue