aboutsummaryrefslogtreecommitdiffhomepage
path: root/test.sh
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-01-31 23:40:27 +0900
committernsfisis <nsfisis@gmail.com>2024-01-31 23:42:05 +0900
commit69c0972c81c60f47217a6e345b6e01b73de41af4 (patch)
treeb96bf24e40b2499db4092eb367cb53f5d9621b3d /test.sh
parent21bf0f20145f0d7b5dc4d0922ef6e55120dcd583 (diff)
downloadpong-wars-quine.rb-69c0972c81c60f47217a6e345b6e01b73de41af4.tar.gz
pong-wars-quine.rb-69c0972c81c60f47217a6e345b6e01b73de41af4.tar.zst
pong-wars-quine.rb-69c0972c81c60f47217a6e345b6e01b73de41af4.zip
add filesHEADmain
Diffstat (limited to 'test.sh')
-rw-r--r--test.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/test.sh b/test.sh
new file mode 100644
index 0000000..efd480e
--- /dev/null
+++ b/test.sh
@@ -0,0 +1,20 @@
+set -eu
+
+rm -f pw.*.rb pw.*.*.rb
+
+for i in {1..5}; do
+ ruby pw.rb $i > pw.$i.rb
+done
+
+for i in {1..5}; do
+ for j in {1..5}; do
+ ruby pw.$i.rb $j > pw.$i.$j.rb
+ done
+done
+
+for i in {1..5}; do
+ for j in {1..5}; do
+ diff pw.$i.rb pw.$j.$i.rb
+ done
+done
+echo "okay"