use specific stringstream types

This commit is contained in:
2024-07-27 16:04:09 -05:00
committed by Celtic Minstrel
parent 6d2e8a807b
commit b7692c2fa6
4 changed files with 5 additions and 6 deletions

View File

@@ -6,13 +6,13 @@
TEST_CASE("Parsing and stringifying locations") {
SECTION("Stringifying") {
location l(27, 923);
std::stringstream out;
std::ostringstream out;
out << l;
CHECK(out.str() == "(27,923)");
}
SECTION("Parsing") {
location l;
std::stringstream in("(27,923)");
std::istringstream in("(27,923)");
in >> l;
CHECK(l.x == 27);
CHECK(l.y == 923);