From 997cb1c39c603512b7db760e9537c39ea3c68a38 Mon Sep 17 00:00:00 2001 From: Charles Date: Sun, 24 Nov 2019 04:51:55 +0100 Subject: Added reference bonus functions to test against assembly one --- ft_strcpy_test.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ft_strcpy_test.c') diff --git a/ft_strcpy_test.c b/ft_strcpy_test.c index 1ca7a49..c8ec474 100644 --- a/ft_strcpy_test.c +++ b/ft_strcpy_test.c @@ -9,7 +9,7 @@ static char actual_buf[FT_STRCPY_BUF_SIZE] = {0}; strcpy(expected_buf, str); \ ft_strcpy(actual_buf, str); \ if (strcmp(expected_buf, actual_buf) != 0) \ - printf("KO: [COMPARE]: %s: expected: \"%s\" got: \"%s\"\n", test_name, expected_buf, actual_buf); \ + printf("KO: [COMPARE]: %s: expected: \"%s\" got: \"%s\"\n", test_name, expected_buf, actual_buf); \ else \ print_ok(); \ } while (0); @@ -47,8 +47,8 @@ volutpat, eros eget rhoncus rhoncus, diam augue egestas dolor, vitae rutrum nisi felis sed purus. Mauris magna ex, mollis non suscipit eu, lacinia ac turpis. Phasellus\ ac tortor et lectus fermentum lobortis eu at mauris. Vestibulum sit amet posuere\ tortor, sit amet consequat amet."); - FT_STRCPY_EXPECT("\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"); - FT_STRCPY_EXPECT("\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"); + FT_STRCPY_EXPECT("\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0b\x0c\x0d\x0e\x0f"); + FT_STRCPY_EXPECT("\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0b\x0c\x0d\x0e\x0f"); } void -- cgit