Browse Source

Split complex division with non-truncated variant

DricomDragon 5 years ago
parent
commit
05dea1e4df
1 changed files with 5 additions and 0 deletions
  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" ]
 }