aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-05-10 22:01:15 +0200
committerCharles <sircharlesaze@gmail.com>2020-05-10 22:01:15 +0200
commitd3fb362c2e0b83cc9754a05ae5bc4a68a5f9269d (patch)
tree0caac15f6a52282d83acffa3154fd007fc3db444 /test
parent02abc030a68cb2fdd2f21c96db830ec8cb9176ad (diff)
downloadlibft-d3fb362c2e0b83cc9754a05ae5bc4a68a5f9269d.tar.gz
libft-d3fb362c2e0b83cc9754a05ae5bc4a68a5f9269d.tar.bz2
libft-d3fb362c2e0b83cc9754a05ae5bc4a68a5f9269d.zip
Added ft_strtof, ft_atof, ft_vectobuf32, ft_split_len (not tested)
Diffstat (limited to 'test')
-rw-r--r--test/src/main.c1
-rw-r--r--test/src/runner/test_runner_str.c5
-rw-r--r--test/src/str/test_ft_strtof.c29
3 files changed, 35 insertions, 0 deletions
diff --git a/test/src/main.c b/test/src/main.c
index e962577..357e02e 100644
--- a/test/src/main.c
+++ b/test/src/main.c
@@ -34,6 +34,7 @@ static void run_all_test(void)
RUN_TEST_GROUP(ft_strsjoinf);
RUN_TEST_GROUP(ft_strsub);
RUN_TEST_GROUP(ft_strsubf);
+ RUN_TEST_GROUP(ft_strtof);
// ht
RUN_TEST_GROUP(ft_htentry_new);
diff --git a/test/src/runner/test_runner_str.c b/test/src/runner/test_runner_str.c
index 8d3b68a..c2cf2a7 100644
--- a/test/src/runner/test_runner_str.c
+++ b/test/src/runner/test_runner_str.c
@@ -29,3 +29,8 @@ TEST_GROUP_RUNNER(ft_strsubf)
{
RUN_TEST_CASE(ft_strsubf, basic);
}
+
+TEST_GROUP_RUNNER(ft_strtof)
+{
+ RUN_TEST_CASE(ft_strtof, basic);
+}
diff --git a/test/src/str/test_ft_strtof.c b/test/src/str/test_ft_strtof.c
new file mode 100644
index 0000000..65290a9
--- /dev/null
+++ b/test/src/str/test_ft_strtof.c
@@ -0,0 +1,29 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* test_ft_strtof.c :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2020/04/01 19:41:59 by charles #+# #+# */
+/* Updated: 2020/05/10 21:58:21 by charles ### ########.fr */
+/* */
+/* ************************************************************************** */
+
+#include "libft_test.h"
+
+TEST_GROUP(ft_strtof);
+
+TEST_SETUP(ft_strtof)
+{}
+
+TEST_TEAR_DOWN(ft_strtof)
+{}
+
+TEST(ft_strtof, basic)
+{
+ /* float foo; */
+
+ /* foo = ft_strtof("0.0", NULL); */
+ /* TEST_ASSERT(0); */
+}