From a0e85c1aa32b19780660123f415d929da1e20bbc Mon Sep 17 00:00:00 2001 From: Richard Date: Sun, 28 Jan 2024 21:44:06 -0700 Subject: [PATCH] Add Rename test diffs --- results/diffs/R984.txt | 66 +++++++++++++++++++++++++++++++++++++++++- results/diffs/R985.txt | 33 ++++++++++++++++++++- results/diffs/R986.txt | 33 ++++++++++++++++++++- results/diffs/R987.txt | 47 +++++++++++++++++++++++++++++- 4 files changed, 175 insertions(+), 4 deletions(-) diff --git a/results/diffs/R984.txt b/results/diffs/R984.txt index cb496d46..b44400b7 100644 --- a/results/diffs/R984.txt +++ b/results/diffs/R984.txt @@ -1 +1,65 @@ -AWAITING TEST RESULTS +diff --git a/RefactorTest/RenameCpp20.cpp b/RefactorTest/RenameCpp20.cpp +index 17be92f..41229ec 100644 +--- a/RefactorTest/RenameCpp20.cpp ++++ b/RefactorTest/RenameCpp20.cpp +@@ -457,7 +457,7 @@ void f10() + } + + // #TEST#: R984 Rename E +-enum class E ++enum class Goink + { + // #TEST#: R985 Rename One + One, +@@ -466,15 +466,15 @@ enum class E + Three + }; + +-std::ostream &operator<<(std::ostream &str, E value) ++std::ostream &operator<<(std::ostream &str, Goink value) + { + switch (value) + { +- case E::One: ++ case Goink::One: + return str << "One"; +- case E::Two: ++ case Goink::Two: + return str << "Two"; +- case E::Three: ++ case Goink::Three: + return str << "Three"; + } + return str << "? (" << static_cast(value) << ')'; +@@ -485,25 +485,25 @@ void f11() + { + struct F11 + { +- using enum E; ++ using enum Goink; + }; + + const auto &get_enumerator = [&]() -> auto + { +- using enum E; ++ using enum Goink; + // #TEST#: R987 Rename Three + return Three; + }; + + const auto &assert_enumerator = [&](const auto &enumerator) -> void + { +- using enum E; ++ using enum Goink; + REQUIRE_EQUAL(Three, enumerator); + }; + + F11 f11Ins{}; +- REQUIRE_EQUAL(E::One, F11::One); +- REQUIRE_EQUAL(f11Ins.Two, E::Two); ++ REQUIRE_EQUAL(Goink::One, F11::One); ++ REQUIRE_EQUAL(f11Ins.Two, Goink::Two); + REQUIRE_EQUAL(F11::Three, get_enumerator()); + assert_enumerator(get_enumerator()); + } + diff --git a/results/diffs/R985.txt b/results/diffs/R985.txt index cb496d46..367b9f71 100644 --- a/results/diffs/R985.txt +++ b/results/diffs/R985.txt @@ -1 +1,32 @@ -AWAITING TEST RESULTS +diff --git a/RefactorTest/RenameCpp20.cpp b/RefactorTest/RenameCpp20.cpp +index 17be92f..0b486b8 100644 +--- a/RefactorTest/RenameCpp20.cpp ++++ b/RefactorTest/RenameCpp20.cpp +@@ -460,7 +460,7 @@ void f10() + enum class E + { + // #TEST#: R985 Rename One +- One, ++ Goink, + // #TEST#: R986 Rename Two + Two, + Three +@@ -470,7 +470,7 @@ std::ostream &operator<<(std::ostream &str, E value) + { + switch (value) + { +- case E::One: ++ case E::Goink: + return str << "One"; + case E::Two: + return str << "Two"; +@@ -502,7 +502,7 @@ void f11() + }; + + F11 f11Ins{}; +- REQUIRE_EQUAL(E::One, F11::One); ++ REQUIRE_EQUAL(E::Goink, F11::Goink); + REQUIRE_EQUAL(f11Ins.Two, E::Two); + REQUIRE_EQUAL(F11::Three, get_enumerator()); + assert_enumerator(get_enumerator()); + diff --git a/results/diffs/R986.txt b/results/diffs/R986.txt index cb496d46..e19bebe2 100644 --- a/results/diffs/R986.txt +++ b/results/diffs/R986.txt @@ -1 +1,32 @@ -AWAITING TEST RESULTS +diff --git a/RefactorTest/RenameCpp20.cpp b/RefactorTest/RenameCpp20.cpp +index 17be92f..9ed350c 100644 +--- a/RefactorTest/RenameCpp20.cpp ++++ b/RefactorTest/RenameCpp20.cpp +@@ -462,7 +462,7 @@ enum class E + // #TEST#: R985 Rename One + One, + // #TEST#: R986 Rename Two +- Two, ++ Goink, + Three + }; + +@@ -472,7 +472,7 @@ std::ostream &operator<<(std::ostream &str, E value) + { + case E::One: + return str << "One"; +- case E::Two: ++ case E::Goink: + return str << "Two"; + case E::Three: + return str << "Three"; +@@ -503,7 +503,7 @@ void f11() + + F11 f11Ins{}; + REQUIRE_EQUAL(E::One, F11::One); +- REQUIRE_EQUAL(f11Ins.Two, E::Two); ++ REQUIRE_EQUAL(f11Ins.Goink, E::Goink); + REQUIRE_EQUAL(F11::Three, get_enumerator()); + assert_enumerator(get_enumerator()); + } + diff --git a/results/diffs/R987.txt b/results/diffs/R987.txt index cb496d46..0ee44167 100644 --- a/results/diffs/R987.txt +++ b/results/diffs/R987.txt @@ -1 +1,46 @@ -AWAITING TEST RESULTS +diff --git a/RefactorTest/RenameCpp20.cpp b/RefactorTest/RenameCpp20.cpp +index 17be92f..d0a7f0c 100644 +--- a/RefactorTest/RenameCpp20.cpp ++++ b/RefactorTest/RenameCpp20.cpp +@@ -463,7 +463,7 @@ enum class E + One, + // #TEST#: R986 Rename Two + Two, +- Three ++ Goink + }; + + std::ostream &operator<<(std::ostream &str, E value) +@@ -474,7 +474,7 @@ std::ostream &operator<<(std::ostream &str, E value) + return str << "One"; + case E::Two: + return str << "Two"; +- case E::Three: ++ case E::Goink: + return str << "Three"; + } + return str << "? (" << static_cast(value) << ')'; +@@ -492,19 +492,19 @@ void f11() + { + using enum E; + // #TEST#: R987 Rename Three +- return Three; ++ return Goink; + }; + + const auto &assert_enumerator = [&](const auto &enumerator) -> void + { + using enum E; +- REQUIRE_EQUAL(Three, enumerator); ++ REQUIRE_EQUAL(Goink, enumerator); + }; + + F11 f11Ins{}; + REQUIRE_EQUAL(E::One, F11::One); + REQUIRE_EQUAL(f11Ins.Two, E::Two); +- REQUIRE_EQUAL(F11::Three, get_enumerator()); ++ REQUIRE_EQUAL(F11::Goink, get_enumerator()); + assert_enumerator(get_enumerator()); + } + +