浏览代码

Split complex division with non-truncated variant

DricomDragon 5 年之前
父节点
当前提交
05dea1e4df
共有 1 个文件被更改,包括 5 次插入0 次删除
  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" ]
 }