aboutsummaryrefslogtreecommitdiff
path: root/02-usart/tests/test_memory.c
blob: e62877a275a5241d95580884d1a799db4d58b1c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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);
}