diff options
| author | Charles <sircharlesaze@gmail.com> | 2019-11-24 01:04:21 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2019-11-24 01:04:21 +0100 |
| commit | 5a47d63887a0878243b17799b19c4a0f76d3756d (patch) | |
| tree | 72da1070587a0cd5c0a9599f6aacf8d4cb15b9c2 /ft_strcmp_test.c | |
| parent | 97e84015b635cf51d32b00000dc3fa25390251b4 (diff) | |
| download | libasm_test-5a47d63887a0878243b17799b19c4a0f76d3756d.tar.gz libasm_test-5a47d63887a0878243b17799b19c4a0f76d3756d.tar.bz2 libasm_test-5a47d63887a0878243b17799b19c4a0f76d3756d.zip | |
ft_write.s, ft_read.s, ft_strdup.s tests and prettier
Diffstat (limited to 'ft_strcmp_test.c')
| -rw-r--r-- | ft_strcmp_test.c | 21 |
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 |
