Skip to content

Commit 04b4238

Browse files
Add simple native formatting test
1 parent ff157e3 commit 04b4238

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

util/HelloWorld.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
class HelloWorld {
2+
public static void main(String[] args) {
3+
System
4+
.out
5+
.println
6+
("Hello, World!");
7+
}
8+
}

util/test-native.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,5 @@ if [[ $status -ne 2 ]]; then
2828
echo "google-java-format_linux (native) without arguments should have printed usage help and exited with 2, but did not :("
2929
exit 1
3030
fi
31+
32+
core/target/google-java-format util/HelloWorld.java

0 commit comments

Comments
 (0)