Changeset 295 for trunk/src/cutest_sh_tools.c
- Timestamp:
- Oct 31, 2010, 10:36:04 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/cutest_sh_tools.c
r19 r295 6 6 #include "samhain.h" 7 7 #include "sh_tools.h" 8 #include "sh_ipvx.h" 8 9 9 10 void Test_sh_tools_safe_name_01(CuTest *tc) { … … 106 107 char* input = strdup("hello world"); 107 108 108 CuAssertTrue(tc, ! is_numeric(input));109 CuAssertTrue(tc, !sh_ipvx_is_numeric(input)); 109 110 110 111 input = strdup("127.0.0.1"); 111 CuAssertTrue(tc, is_numeric(input));112 CuAssertTrue(tc, sh_ipvx_is_numeric(input)); 112 113 input = strdup("127.0.0.de"); 113 CuAssertTrue(tc, ! is_numeric(input));114 CuAssertTrue(tc, !sh_ipvx_is_numeric(input)); 114 115 input = strdup("127"); 115 CuAssertTrue(tc, is_numeric(input));116 CuAssertTrue(tc, sh_ipvx_is_numeric(input)); 116 117 } 117 118
Note:
See TracChangeset
for help on using the changeset viewer.