- ASSERT(strchr(teststr_foo, 'f') == teststr_foo+0);
- ASSERT(strchr(teststr_foo, 'o') == teststr_foo+1);
- ASSERT(strchr(teststr_foo, '\0') == teststr_foo+3);
- ASSERT(strchr(teststr_foo, 'X') == NULL);
- ASSERT(strrchr(teststr_foo, 'f') == teststr_foo+0);
- ASSERT(strrchr(teststr_foo, 'o') == teststr_foo+2);
- ASSERT(strrchr(teststr_foo, '\0') == teststr_foo+3);
- ASSERT(strrchr(teststr_foo, 'X') == NULL);
+ TEST_REL_PTR(teststr_foo+0, ==, strchr(teststr_foo, 'f'));
+ TEST_REL_PTR(teststr_foo+1, ==, strchr(teststr_foo, 'o'));
+ TEST_REL_PTR(teststr_foo+3, ==, strchr(teststr_foo, '\0'));
+ TEST_REL_PTR(NULL, ==, strchr(teststr_foo, 'X'));
+ TEST_REL_PTR(teststr_foo+0, ==, strrchr(teststr_foo, 'f'));
+ TEST_REL_PTR(teststr_foo+2, ==, strrchr(teststr_foo, 'o'));
+ TEST_REL_PTR(teststr_foo+3, ==, strrchr(teststr_foo, '\0'));
+ TEST_REL_PTR(NULL, ==, strrchr(teststr_foo, 'X'));