aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNicolas Catania <niko@google.com>2010-02-03 15:43:36 -0800
committerNicolas Catania <niko@google.com>2010-02-03 15:43:36 -0800
commite5b7af0c3c5af401b46d34987cbd8a65f45454de (patch)
tree459d4e0ccd997fabdbf656a1a5c9632e41732261 /tests
parentd1e702c1f745428a7bc53cbbd80b0c283ca52de1 (diff)
downloadastl-e5b7af0c3c5af401b46d34987cbd8a65f45454de.tar.gz
Added support for endl ends and flush.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_iostream.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_iostream.cpp b/tests/test_iostream.cpp
index 3477fc6..a3437a2 100644
--- a/tests/test_iostream.cpp
+++ b/tests/test_iostream.cpp
@@ -71,11 +71,18 @@ bool testCoutCerr() {
return true;
}
+bool testManip() {
+ std::cout << "line 1" << std::endl
+ << " a nul char |" << std::ends << std::flush << "| in line 2.";
+ return true;
+}
+
} // namespace android
int main(int argc, char **argv){
FAIL_UNLESS(testStaticInit);
FAIL_UNLESS(testOstream);
FAIL_UNLESS(testCoutCerr);
+ FAIL_UNLESS(testManip);
return kPassed;
}