diff options
Diffstat (limited to '02-usart/tests/test_memory.c')
-rw-r--r-- | 02-usart/tests/test_memory.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/02-usart/tests/test_memory.c b/02-usart/tests/test_memory.c new file mode 100644 index 0000000..e62877a --- /dev/null +++ b/02-usart/tests/test_memory.c @@ -0,0 +1,12 @@ +#include "test_harness.c" +#include "memory.h" + +TEST(memory, memcpy) +{ + const char* from = "Hello"; + char to[16]; + + memcpy(to, from, 6); + + ASSERT_EQ_STR(to, from); +} |