aboutsummaryrefslogtreecommitdiffstats
path: root/tests/foundational.bats
blob: 5683371b6341d532d67d28b4739c89a7e1c800ea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env bats

@test "addition using bc" {
  result="$(echo 2+2 | bc)"
  [ "$result" -eq 4 ]
}

@test "addition using dc" {
  result="$(echo 2 2+p | dc)"
  [ "$result" -eq 4 ]
}