ICU-667 include the iostream that corresponds to the U_IOSTREAM_SOURCE, don't test operator<< if U_IOSTREAM_SOURCE is 0

X-SVN-Rev: 2677
This commit is contained in:
Yves Arrouye 2000-10-13 20:32:17 +00:00
parent db5ec3f28b
commit 8c8f9038b8

View File

@ -7,9 +7,15 @@
#include "ustrtest.h"
#include "unicode/unistr.h"
#include "unicode/locid.h"
#include <iostream.h>
#include <stdio.h>
#if U_IOSTREAM_SOURCE >= 199711
#include <iostream>
using namespace std;
#elif U_IOSTREAM_SOURCE >= 198506
#include <iostream.h>
#endif
UnicodeStringTest::UnicodeStringTest()
{
}
@ -669,10 +675,11 @@ UnicodeStringTest::TestMiscellaneous()
if (test2[i] != test4[i])
errln(UnicodeString("getUChars() failed: strings differ at position ") + i);
}
#if U_IOSTREAM_SOURCE
logln("Testing the operator \"<<\" \n");
cout<<"Testing the \"<<\" operator---test1="<<test1<<". "<<test3<<"\n";
#endif
}
void