forked from github/server
fix constant conversion error
This commit is contained in:
parent
ae951ee780
commit
9ac74ceecc
|
@ -29,7 +29,7 @@ static void test_unicode_trim(CuTest * tc)
|
||||||
CuAssertIntEquals(tc, 3, unicode_utf8_trim(buffer));
|
CuAssertIntEquals(tc, 3, unicode_utf8_trim(buffer));
|
||||||
CuAssertStrEquals(tc, "Hello Word", buffer);
|
CuAssertStrEquals(tc, "Hello Word", buffer);
|
||||||
|
|
||||||
buffer[9] = 0xc3;
|
buffer[9] = (char)0xc3;
|
||||||
CuAssertIntEquals(tc, 1, unicode_utf8_trim(buffer));
|
CuAssertIntEquals(tc, 1, unicode_utf8_trim(buffer));
|
||||||
CuAssertStrEquals(tc, "Hello Wor?", buffer);
|
CuAssertStrEquals(tc, "Hello Wor?", buffer);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue