summaryrefslogtreecommitdiff
path: root/indra/test/llstreamtools_tut.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/test/llstreamtools_tut.cpp')
-rw-r--r--indra/test/llstreamtools_tut.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/indra/test/llstreamtools_tut.cpp b/indra/test/llstreamtools_tut.cpp
index 0f6436f0f4..a9bb15d911 100644
--- a/indra/test/llstreamtools_tut.cpp
+++ b/indra/test/llstreamtools_tut.cpp
@@ -385,15 +385,17 @@ namespace tut
std::string expected_result;
std::string actual_result;
std::istringstream is;
-
is.clear();
is.str(str = " First Second \t \r \n Third Fourth-ShouldThisBePartOfFourth Fifth\n");
actual_result = "";
get_word(actual_result, is); // First
+ (void)ret;
actual_result = "";
get_word(actual_result, is); // Second
+ (void)ret;
actual_result = "";
get_word(actual_result, is); // Third
+ (void)ret;
// the current implementation of get_word seems inconsistent with
// skip_to_next_word. skip_to_next_word treats any character other
@@ -484,6 +486,7 @@ namespace tut
is.str(str = "First Second \t \r\n Third Fourth-ShouldThisBePartOfFourth IsThisFifth\n");
actual_result = "";
get_line(actual_result, is);
+ (void)ret;
expected_result = "First Second \t \r\n";
ensure_equals("get_line: 1", actual_result, expected_result);
@@ -548,6 +551,7 @@ namespace tut
is.str(str = "Should not skip lone \r.\r\n");
actual_result = "";
get_line(actual_result, is);
+ (void)ret;
expected_result = "Should not skip lone \r.\r\n";
ensure_equals("get_line: carriage return skipped even though not followed by newline", actual_result, expected_result);
}
@@ -565,6 +569,7 @@ namespace tut
is.str(str = "\n");
actual_result = "";
get_line(actual_result, is);
+ (void)ret;
expected_result = "\n";
ensure_equals("get_line: Just newline", actual_result, expected_result);
}
@@ -583,6 +588,7 @@ namespace tut
is.str(str = "First Line.\nSecond Line.\n");
actual_result = "";
get_line(actual_result, is, 255);
+ (void)ret;
expected_result = "First Line.\n";
ensure_equals("get_line: Basic Operation", actual_result, expected_result);