コード例 #1
0
ファイル: SdFatTestSuite.cpp プロジェクト: 0x1abin/Gamebuino
//------------------------------------------------------------------------------
void testVerify_P(char* result, PGM_P expect) {
  testOut->write('"');
  testOut->print(result);
  testOut->print("\",\"");
  testOut->print((const __FlashStringHelper*)expect);
  testOut->write('"');
  uint8_t n = strlen(result) + strlenPGM(expect) + 5;
  testResult(!strcmp_P(result, expect), n);
}
コード例 #2
0
ファイル: SdFatTestSuite.cpp プロジェクト: 12019/libraries
//------------------------------------------------------------------------------
void testVerify_P(char* result, PGM_P expect) {
  testOut->write('"');
  testOut->print(result);
  testOut->print("\",\"");
  print_P(testOut, expect);
  testOut->write('"');
  uint8_t n = strlen(result) + strlenPGM(expect) + 5;
  testResult(!strcmp_P(result, expect), n);
}
コード例 #3
0
ファイル: SdFatTestSuite.cpp プロジェクト: 0x1abin/Gamebuino
//------------------------------------------------------------------------------
void testVerify_P(bool b, PGM_P msg) {
  testOut->print((const __FlashStringHelper*)msg);
  uint8_t n = strlenPGM(msg);
  testResult(b, n);
}
コード例 #4
0
ファイル: SdFatTestSuite.cpp プロジェクト: 12019/libraries
//------------------------------------------------------------------------------
void testVerify_P(bool b, PGM_P msg) {
  print_P(testOut, msg);
  uint8_t n = strlenPGM(msg);
  testResult(b, n);
}