From d5752079053091e65b99eb52fbb747050bbb08e8 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Fri, 2 Jun 2023 00:41:29 +0200 Subject: Flake: Add nixtest --- tests/testing_test.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/testing_test.nix (limited to 'tests') 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; + } +] -- cgit 1.4.1