summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorruki <[email protected]>2024-04-02 00:58:40 +0800
committerruki <[email protected]>2024-04-02 00:58:40 +0800
commit53a18e3ebc0455166031a8b7aa958825b86a307c (patch)
treec846c58f443f14716a18f800bb4eac0921f3984a /tests
parentd1ee61015c30cd08455b8d9bf85970b4ecaa079a (diff)
format tests and templates
Diffstat (limited to 'tests')
-rw-r--r--tests/projects/c++/console/src/main.cpp7
-rw-r--r--tests/projects/c/console/src/main.c3
2 files changed, 3 insertions, 7 deletions
diff --git a/tests/projects/c++/console/src/main.cpp b/tests/projects/c++/console/src/main.cpp
index db2361659..7c775d288 100644
--- a/tests/projects/c++/console/src/main.cpp
+++ b/tests/projects/c++/console/src/main.cpp
@@ -1,9 +1,6 @@
#include <iostream>
-using namespace std;
-
-int main(int argc, char** argv)
-{
- cout << "hello world!" << endl;
+int main(int argc, char** argv) {
+ std::cout << "hello world!" << std::endl;
return 0;
}
diff --git a/tests/projects/c/console/src/main.c b/tests/projects/c/console/src/main.c
index 9ae580511..113930e1a 100644
--- a/tests/projects/c/console/src/main.c
+++ b/tests/projects/c/console/src/main.c
@@ -1,7 +1,6 @@
#include <stdio.h>
-int main(int argc, char** argv)
-{
+int main(int argc, char** argv) {
printf("hello world!\n");
return 0;
}