We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5009190 commit 28c6210Copy full SHA for 28c6210
kotlin/hello.kts
@@ -0,0 +1 @@
1
+println("Hello, world")
kotlin/test.sh
@@ -0,0 +1,12 @@
+#!/usr/bin/env bash
2
+kotlinc -script hello.kts && \
3
+kotlinc -script triple.kts | diff ../test/triple_expected -
4
+
5
+if [ $? -ne 0 ]; then
6
+ echo
7
+ echo "*** KOTLIN TESTS FAILED ***"
8
+ exit 1
9
+else
10
11
+ echo "KOTLIN TESTS PASSED"
12
+fi
kotlin/triple.kts
@@ -0,0 +1,9 @@
+for (c in 1..40) {
+ for (b in 1..c-1) {
+ for (a in 1..b-1) {
+ if (a * a + b * b == c * c) {
+ println("${a}, ${b}, ${c}");
+ }
+}
0 commit comments