From f96d25fb7430b56e3711dff92aff9cfaa75134be Mon Sep 17 00:00:00 2001 From: "Bobby R. Bruce" Date: Thu, 24 Oct 2019 14:11:31 -0700 Subject: [PATCH] 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 --- src/base/str.test.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)); } /* -- 2.30.2