From: Bobby R. Bruce Date: Thu, 24 Oct 2019 21:11:31 +0000 (-0700) Subject: tests, base: Fixed incorrect implementation of StrTest.ToLower test. X-Git-Tag: v19.0.0.0~393 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f96d25fb7430b56e3711dff92aff9cfaa75134be;p=gem5.git tests, base: Fixed incorrect implementation of StrTest.ToLower test. Change-Id: I96672052f8c9da9d4f61ff0e8eed324032b1afac Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22123 Reviewed-by: Daniel Carvalho Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power Tested-by: kokoro --- diff --git a/src/base/str.test.cc b/src/base/str.test.cc index 05af5d7f2..997f55eaa 100644 --- a/src/base/str.test.cc +++ b/src/base/str.test.cc @@ -39,6 +39,8 @@ #include +#include + #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)); } /*