diff --git a/tests/test_SymbolTable.cpp b/tests/test_SymbolTable.cpp
index 9d7d02bde1e9f2b3c29ce479694acaa82c8a3489..38b0c1c8213b9cf3f9cbb36a9c6e30b453bc7f4e 100644
--- a/tests/test_SymbolTable.cpp
+++ b/tests/test_SymbolTable.cpp
@@ -24,11 +24,13 @@ TEST_CASE("SymbolTable", "[language]")
       std::stringstream st_output;
       st_output << '\n' << *root_st;
 
-      REQUIRE(st_output.str() == R"(
--- Symbol table state -- parent : 0
- a: --
-------------------------
-)");
+      std::stringstream expected_output;
+      expected_output << '\n'
+                      << "-- Symbol table state -- parent : " << static_cast<SymbolTable*>(nullptr) << '\n'
+                      << " a: --\n"
+                      << "------------------------\n";
+
+      REQUIRE(st_output.str() == expected_output.str());
     }
 
     SECTION("Attributes")
@@ -68,11 +70,13 @@ TEST_CASE("SymbolTable", "[language]")
         std::stringstream st_output;
         st_output << '\n' << *root_st;
 
-        REQUIRE(st_output.str() == R"(
--- Symbol table state -- parent : 0
- a: 2.3
-------------------------
-)");
+        std::stringstream expected_output;
+        expected_output << '\n'
+                        << "-- Symbol table state -- parent : " << static_cast<SymbolTable*>(nullptr) << '\n'
+                        << " a: 2.3\n"
+                        << "------------------------\n";
+
+        REQUIRE(st_output.str() == expected_output.str());
       }
     }
   }