ソースを参照

First test with bats

DricomDragon 5 年 前
コミット
d1efaf5681
1 ファイル変更6 行追加0 行削除
  1. 6 0
      test.bats

+ 6 - 0
test.bats

@@ -0,0 +1,6 @@
+#!/usr/bin/bats
+
+@test "Print one number" {
+    result="$(echo '42=' | ./eval.out)"
+    [ "$result" = "42" ]
+}