diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2023-06-02 00:41:29 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2023-06-05 12:58:07 +0200 |
commit | d5752079053091e65b99eb52fbb747050bbb08e8 (patch) | |
tree | 718009dff814661086f6385fd8df7cda5bf3c4f9 /tests | |
parent | Update (diff) | |
download | nixos-config-d5752079053091e65b99eb52fbb747050bbb08e8.tar.gz nixos-config-d5752079053091e65b99eb52fbb747050bbb08e8.tar.bz2 nixos-config-d5752079053091e65b99eb52fbb747050bbb08e8.zip |
Flake: Add nixtest
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testing_test.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/testing_test.nix b/tests/testing_test.nix new file mode 100644 index 0000000..b977fc0 --- /dev/null +++ b/tests/testing_test.nix @@ -0,0 +1,14 @@ +let + lib = import ./lib.nix; +in [ + { + name = "Test function concatenate"; + actual = lib.concatenate "a" "b"; + expected = "ab"; + } + { + name = "Test function add"; + actual = lib.add 1 2; + expected = 3; + } +] |