summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Makefile2
-rw-r--r--tests/exec/bst.cpp2
-rw-r--r--tests/exec/passing.cpp4
3 files changed, 5 insertions, 3 deletions
diff --git a/src/Makefile b/src/Makefile
index 4f15695..30526f5 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -10,3 +10,5 @@ main.byte: main.ml ast.ml parser.mly lexer.mll pretty.ml
clean:
rm -r _build
+ rm main.byte
+ rm $(BIN)
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";
}