Last active
July 6, 2024 15:25
-
-
Save birojow/d97037ad5125878b013a31805a74035a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
fun performChainedCalculationsCorrectly() { | |
arrange { | |
enterFormula("((515 + 87 x 311) - 302) ÷ 27") | |
} | |
act { | |
performCalculation() | |
} | |
assert { | |
resultIs("1010.0") | |
} | |
act { | |
calculateOnResult("%80") | |
} | |
assert { | |
resultIs("808.0") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment