Kaydet (Commit) e8808f8e authored tarafından Caolán McNamara's avatar Caolán McNamara

ensure contents are as expected

üst 08dbc9b6
...@@ -2249,8 +2249,8 @@ namespace rtl_OStringBuffer ...@@ -2249,8 +2249,8 @@ namespace rtl_OStringBuffer
::rtl::OStringBuffer aStrBuf("hello world"); ::rtl::OStringBuffer aStrBuf("hello world");
aStrBuf.append('\0'); aStrBuf.append('\0');
aStrBuf.append('\0'); aStrBuf.append('\1');
aStrBuf.append('\0'); aStrBuf.append('\2');
aStrBuf.append("hello world"); aStrBuf.append("hello world");
...@@ -2258,7 +2258,10 @@ namespace rtl_OStringBuffer ...@@ -2258,7 +2258,10 @@ namespace rtl_OStringBuffer
( (
"should be able to append nulls", "should be able to append nulls",
aStrBuf.getLength() == aStrBuf.getLength() ==
2 * RTL_CONSTASCII_LENGTH("hello world") + 3 2 * RTL_CONSTASCII_LENGTH("hello world") + 3 &&
aStrBuf[RTL_CONSTASCII_LENGTH("hello world")] == 0 &&
aStrBuf[RTL_CONSTASCII_LENGTH("hello world")]+1 == 1 &&
aStrBuf[RTL_CONSTASCII_LENGTH("hello world")]+2 == 2
); );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment