aboutsummaryrefslogtreecommitdiff
path: root/ft_strcmp_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'ft_strcmp_test.c')
-rw-r--r--ft_strcmp_test.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/ft_strcmp_test.c b/ft_strcmp_test.c
index f0ec048..db106df 100644
--- a/ft_strcmp_test.c
+++ b/ft_strcmp_test.c
@@ -67,6 +67,27 @@ tortor, sit amet consequat amet.");
FT_STRCMP_EXPECT("%c%s%p%x%X%e%f%g", "%s%p%x%X%e%f%g");
FT_STRCMP_EXPECT("the\0hidden", "thehidden");
FT_STRCMP_EXPECT("Lorem ipsum dolor st amet, consectetur adipiscing", "Lodsfsdfasdf");
+
+ FT_STRCMP_EXPECT("\x01", "\x01");
+ FT_STRCMP_EXPECT("\x02", "\x01");
+ FT_STRCMP_EXPECT("\x01", "\x02");
+ FT_STRCMP_EXPECT("\xff", "\xff");
+ FT_STRCMP_EXPECT("\xfe", "\xff");
+ FT_STRCMP_EXPECT("\xff", "\xfe");
+
+ FT_STRCMP_EXPECT("\x01\x01", "\x01");
+ FT_STRCMP_EXPECT("\x01\x02", "\x01");
+ FT_STRCMP_EXPECT("\x02\x01", "\x02");
+ FT_STRCMP_EXPECT("\xff\xff", "\xff");
+ FT_STRCMP_EXPECT("\xff\xfe", "\xff");
+ FT_STRCMP_EXPECT("\xfe\xff", "\xfe");
+
+ FT_STRCMP_EXPECT("\x01", "\x01\x01");
+ FT_STRCMP_EXPECT("\x01", "\x01\x02");
+ FT_STRCMP_EXPECT("\x02", "\x02\x01");
+ FT_STRCMP_EXPECT("\xff", "\xff\xff");
+ FT_STRCMP_EXPECT("\xff", "\xff\xfe");
+ FT_STRCMP_EXPECT("\xfe", "\xfe\xff");
}
void