コード例 #1
0
ファイル: test.c プロジェクト: Tambralinga/ChibiOS
bool _test_assert_sequence(unsigned point, char *expected) {
  char *cp = tokens_buffer;
  while (cp < tokp) {
    if (*cp++ != *expected++)
     return _test_fail(point);
  }
  if (*expected)
    return _test_fail(point);
  clear_tokens();
  return FALSE;
}
コード例 #2
0
bool _test_assert_sequence(char *expected, const char *msg) {
  char *cp = test_tokens_buffer;

  while (cp < test_tokp) {
    if (*cp++ != *expected++)
     return _test_fail(msg);
  }

  if (*expected)
    return _test_fail(msg);

  clear_tokens();

  return FALSE;
}
コード例 #3
0
bool _test_assert(bool condition, const char *msg) {

  if (!condition)
    return _test_fail(msg);
  return FALSE;
}
コード例 #4
0
ファイル: test.c プロジェクト: Tambralinga/ChibiOS
bool _test_assert(unsigned point, bool condition) {

  if (!condition)
    return _test_fail(point);
  return FALSE;
}