aboutsummaryrefslogtreecommitdiff
path: root/test/src/runner
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-01-31 10:44:30 +0100
committerCharles <sircharlesaze@gmail.com>2020-02-02 22:12:42 +0100
commitac0559db82bfef3b7ca3d976b1d7700ed2c1c1fc (patch)
tree214d344c714bdf5b53d651dbd11fec9e0db283cb /test/src/runner
parent9db52bc5ef545a3fa9973002e9a28a2ece68d029 (diff)
downloadlibft-ac0559db82bfef3b7ca3d976b1d7700ed2c1c1fc.tar.gz
libft-ac0559db82bfef3b7ca3d976b1d7700ed2c1c1fc.tar.bz2
libft-ac0559db82bfef3b7ca3d976b1d7700ed2c1c1fc.zip
hash table unit testing, norming
Diffstat (limited to 'test/src/runner')
-rw-r--r--test/src/runner/test_runner_ht.c22
-rw-r--r--test/src/runner/test_runner_str.c (renamed from test/src/runner/test_ft_strlen_runner.c)0
2 files changed, 22 insertions, 0 deletions
diff --git a/test/src/runner/test_runner_ht.c b/test/src/runner/test_runner_ht.c
new file mode 100644
index 0000000..d8718af
--- /dev/null
+++ b/test/src/runner/test_runner_ht.c
@@ -0,0 +1,22 @@
+#include "libft_test.h"
+
+TEST_GROUP_RUNNER(ft_htnew)
+{
+ RUN_TEST_CASE(ft_htnew, segfault);
+ RUN_TEST_CASE(ft_htnew, error_null);
+ RUN_TEST_CASE(ft_htnew, happy_path);
+}
+
+TEST_GROUP_RUNNER(ft_htget)
+{
+ RUN_TEST_CASE(ft_htget, segfault);
+ RUN_TEST_CASE(ft_htget, error_null);
+}
+
+TEST_GROUP_RUNNER(ft_htset)
+{
+ RUN_TEST_CASE(ft_htset, segfault);
+ RUN_TEST_CASE(ft_htset, error_null);
+ RUN_TEST_CASE(ft_htset, happy_path);
+ RUN_TEST_CASE(ft_htset, collision);
+}
diff --git a/test/src/runner/test_ft_strlen_runner.c b/test/src/runner/test_runner_str.c
index 368c033..368c033 100644
--- a/test/src/runner/test_ft_strlen_runner.c
+++ b/test/src/runner/test_runner_str.c