mirror of
https://github.com/autc04/Retro68.git
synced 2024-10-05 19:55:25 +00:00
26 lines
397 B
C
26 lines
397 B
C
#include "Test.h"
|
|
|
|
int main(void)
|
|
{
|
|
const unsigned char *pstr = "\pHello, world.";
|
|
const char *cstr = "Hello, world.";
|
|
|
|
if (pstr[0] != 13)
|
|
{
|
|
TEST_LOG_NO();
|
|
return 1;
|
|
}
|
|
|
|
for (int i = 0; cstr[i]; ++i)
|
|
{
|
|
if (cstr[i] != (char) pstr[i+1])
|
|
{
|
|
TEST_LOG_NO();
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
TEST_LOG_OK();
|
|
return 0;
|
|
}
|