Skip to content

Commit

Permalink
Merge pull request #155 from MindfulAI-Copilots-Bots/FabianaCampanari…
Browse files Browse the repository at this point in the history
…-patch-1

Create test.bats
  • Loading branch information
FabianaCampanari authored Apr 17, 2024
2 parents 8e0ebf6 + 2bfd7dd commit 2ffbeab
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test.bats
Original file line number Diff line number Diff line change
@@ -0,0 +1,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 ]
}

0 comments on commit 2ffbeab

Please sign in to comment.