Skip to content

Commit

Permalink
Add unit tests for math/mean.
Browse files Browse the repository at this point in the history
  • Loading branch information
Roberto Reale committed Mar 6, 2018
1 parent a653e8f commit a3c417f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/math/mean.bats
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bats

source bashlet math/mean

@test "math/mean: calculate the arithmetic-geometric mean of two numbers" {
result="$(bash$$ mean agm 2 3)"
expected="2.47468"
[[ $result == $expected ]]
}

0 comments on commit a3c417f

Please sign in to comment.