Initial commit
This commit is contained in:
commit
feef6058d4
55 changed files with 5878 additions and 0 deletions
38
trim_str_test_driver.c
Normal file
38
trim_str_test_driver.c
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
/*----------------------------------------------------------
|
||||
* HTBLA-Leonding
|
||||
* ---------------------------------------------------------
|
||||
* Title: Trim String
|
||||
* Author: S. Schraml
|
||||
* ----------------------------------------------------------
|
||||
* Description:
|
||||
* trim_str test driver.
|
||||
* ----------------------------------------------------------
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "trim.h"
|
||||
|
||||
#include "shortcut.h"
|
||||
#include "test_trim.h"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
ADD_TEST(empty_string);
|
||||
ADD_TEST(empty_string_cpy);
|
||||
ADD_TEST(just_string);
|
||||
ADD_TEST(just_string_cpy);
|
||||
ADD_TEST(leading_space);
|
||||
ADD_TEST(leading_space_cpy);
|
||||
ADD_TEST(trailing_space);
|
||||
ADD_TEST(trailing_space_cpy);
|
||||
ADD_TEST(leading_and_trailing_space);
|
||||
ADD_TEST(leading_and_trailing_space_cpy);
|
||||
ADD_TEST(just_space);
|
||||
ADD_TEST(just_space_cpy);
|
||||
ADD_TEST(empty_null_string);
|
||||
ADD_TEST(empty_null_string_cpy);
|
||||
|
||||
run_tests();
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue