tests, base: Fixed incorrect implementation of StrTest.ToLower test.
authorBobby R. Bruce <bbruce@ucdavis.edu>
Thu, 24 Oct 2019 21:11:31 +0000 (14:11 -0700)
committerBobby R. Bruce <bbruce@ucdavis.edu>
Mon, 28 Oct 2019 16:04:13 +0000 (16:04 +0000)
Change-Id: I96672052f8c9da9d4f61ff0e8eed324032b1afac
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22123
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/base/str.test.cc

index 05af5d7f2074cc893ec6f262a7f9af014eebb92d..997f55eaaf2cebb559cb5d53e0f86ba71363b961 100644 (file)
@@ -39,6 +39,8 @@
 
 #include <gtest/gtest.h>
 
+#include <cstdint>
+
 #include "base/str.hh"
 
 /*
@@ -95,7 +97,7 @@ TEST(StrTest, EatWhiteNoWhitespace)
 TEST(StrTest, ToLower)
 {
     std::string val = "gOoDbYe FOO@barr!";
-    to_lower("goodbye foo@bar!");
+    EXPECT_EQ("goodbye foo@barr!", to_lower(val));
 }
 
 /*