Windows port for __codecvt_utf8<wchar_t>.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@185849 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -45,14 +45,14 @@ int main()
|
||||
test_buf f(bs.rdbuf());
|
||||
assert(f.sbumpc() == L'1');
|
||||
assert(f.sgetc() == L'2');
|
||||
assert(f.pbackfail(L'a') == -1);
|
||||
assert(f.pbackfail(L'a') == test_buf::traits_type::eof());
|
||||
}
|
||||
{
|
||||
std::fstream bs("underflow.dat");
|
||||
test_buf f(bs.rdbuf());
|
||||
assert(f.sbumpc() == L'1');
|
||||
assert(f.sgetc() == L'2');
|
||||
assert(f.pbackfail(L'a') == -1);
|
||||
assert(f.pbackfail(L'a') == test_buf::traits_type::eof());
|
||||
assert(f.sbumpc() == L'2');
|
||||
assert(f.sgetc() == L'3');
|
||||
}
|
||||
|
@@ -79,6 +79,6 @@ int main()
|
||||
assert(f.sbumpc() == 0x4E51);
|
||||
assert(f.sbumpc() == 0x4E52);
|
||||
assert(f.sbumpc() == 0x4E53);
|
||||
assert(f.sbumpc() == -1);
|
||||
assert(f.sbumpc() == test_buf::traits_type::eof());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user