summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/exec/bst.cpp2
-rw-r--r--tests/exec/passing.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/exec/bst.cpp b/tests/exec/bst.cpp
index e5ccce8..528d6a0 100644
--- a/tests/exec/bst.cpp
+++ b/tests/exec/bst.cpp
@@ -74,7 +74,7 @@ void BST::add2(int x) {
void BST::print() {
tree_print(this->root);
- std::cout << std::endl;
+ std::cout << "\n";
}
diff --git a/tests/exec/passing.cpp b/tests/exec/passing.cpp
index 6354fa5..3a2fbf2 100644
--- a/tests/exec/passing.cpp
+++ b/tests/exec/passing.cpp
@@ -6,8 +6,8 @@ void incr(int &y) {
int main() {
int x = 5;
- std::cout << "x = " << x << std::endl;
+ std::cout << "x = " << x << "\n";
incr(x);
- std::cout << "x = " << x << std::endl;
+ std::cout << "x = " << x << "\n";
}