Kaynağa Gözat

Split complex division with non-truncated variant

DricomDragon 5 yıl önce
ebeveyn
işleme
05dea1e4df
1 değiştirilmiş dosya ile 5 ekleme ve 0 silme
  1. 5 0
      test.bats

+ 5 - 0
test.bats

@@ -62,6 +62,11 @@
 }
 
 @test "Complex division" {
+	result="$(echo '192 / 3 / 16 =' | ./eval.out)"
+	[ "$result" = "4" ]
+}
+
+@test "Complex truncated division" {
 	result="$(echo '182 / 3 / 15 =' | ./eval.out)"
 	[ "$result" = "4" ]
 }