From 5a47d63887a0878243b17799b19c4a0f76d3756d Mon Sep 17 00:00:00 2001 From: Charles Date: Sun, 24 Nov 2019 01:04:21 +0100 Subject: ft_write.s, ft_read.s, ft_strdup.s tests and prettier --- ft_strcmp_test.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'ft_strcmp_test.c') 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 -- cgit