Fixed test.cpp to execute completely instead of returning early. Fixed some VC8 /W4 warnings.

git-svn-id: http://svn.code.sf.net/p/utfcpp/code@29 a809a056-fc17-0410-9590-b4f493f8b08e
This commit is contained in:
ntrifunovic 2006-07-26 18:40:14 +00:00
parent d3640c792b
commit 347505ea0d
3 changed files with 2 additions and 8 deletions

View file

@ -22,7 +22,7 @@ int main()
char byte; char byte;
while (!fs8.eof()) { while (!fs8.eof()) {
string line; string line;
while ((byte = fs8.get()) != '\n' && !fs8.eof()) while ((byte = static_cast<char>(fs8.get())) != '\n' && !fs8.eof())
line.push_back(byte); line.push_back(byte);
line_count++; line_count++;

View file

@ -10,7 +10,7 @@ void id_1528544()
unsigned int cp_u10ffff = next (uit, u10ffff + 4); unsigned int cp_u10ffff = next (uit, u10ffff + 4);
check (cp_u10ffff == 0x10ffff); check (cp_u10ffff == 0x10ffff);
} }
catch (std::exception& ex) { catch (std::exception&) {
check (false); check (false);
} }
} }

View file

@ -8,12 +8,6 @@ using namespace std;
int main() int main()
{ {
unsigned char u10ffff[] = {0xf4, 0x8f, 0xbf, 0xbf};
unsigned char* uit = u10ffff;
unsigned int cp_u10ffff = next (uit, u10ffff + 4);
assert (cp_u10ffff == 0x10ffff);
return 0;
//append //append
unsigned char u[5] = {0,0,0,0,0}; unsigned char u[5] = {0,0,0,0,0};