Kaynağa Gözat

Add test for complex division

More than one operand
DricomDragon 5 yıl önce
ebeveyn
işleme
d335651f3c
1 değiştirilmiş dosya ile 5 ekleme ve 0 silme
  1. 5 0
      test.bats

+ 5 - 0
test.bats

@@ -61,3 +61,8 @@
 	[ "$result" = "5" ]
 }
 
+@test "Complex division" {
+	result="$(echo '182 / 3 / 15 =' | ./eval.out)"
+	[ "$result" = "4" ]
+}
+