diff options
Diffstat (limited to 'test/src')
| -rw-r--r-- | test/src/main.c | 1 | ||||
| -rw-r--r-- | test/src/runner/test_runner_str.c | 5 | ||||
| -rw-r--r-- | test/src/str/test_ft_strtof.c | 29 |
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); */ +} |
