use specific stringstream types
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user