Skip to content

Commit

Permalink
Removed sh highlighting on illustrations and replaced strings with co…
Browse files Browse the repository at this point in the history
…ntains
  • Loading branch information
Rd4dev committed Aug 20, 2024
1 parent c6ed248 commit 8dd0eb2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions wiki/Writing-tests-with-good-behavioural-coverage.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ While line coverage might reach 100% with a single test, it doesn’t ensure tha

**Evaluation and Enhancement Flow:**

```sh
```
+-------------------+
| Coverage Analysis |
Expand Down Expand Up @@ -262,7 +262,7 @@ fun testProcessOrder_allSteps_returnsCorrectMessage() {
fun testProcessOrder_providedWithList_displaysListOfItems() {
processOrder(listOf("Pizza", "Burger"), paymentMade = true)
val output = outContent.toString().trim()
assertThat(output, containsString("Order: Pizza, Burger"))
assertThat(output).contains("Order: Pizza, Burger")
}
```

Expand All @@ -273,7 +273,7 @@ fun testProcessOrder_providedWithList_displaysListOfItems() {
fun testProcessOrder_forListItems_calculatesCorrectTotalPrice() {
processOrder(listOf("Pizza", "Burger"), paymentMade = true)
val output = outContent.toString().trim()
assertThat(output, containsString("Total: 20.0"))
assertThat(output).contains("Total: 20.0")
}
```

Expand All @@ -284,7 +284,7 @@ fun testProcessOrder_forListItems_calculatesCorrectTotalPrice() {
fun testProcessOrder_whenPaymentMade_displaysPaymentSuccess() {
processOrder(listOf("Pizza", "Burger"), paymentMade = true)
val output = outContent.toString().trim()
assertThat(output, containsString("Payment successful"))
assertThat(output).contains("Payment successful")
}
```

Expand All @@ -295,7 +295,7 @@ fun testProcessOrder_whenPaymentMade_displaysPaymentSuccess() {
fun testProcessOrder_whenNotPaymentMade_displaysPaymentPending() {
processOrder(listOf("Pizza", "Burger"), paymentMade = false)
val output = outContent.toString().trim()
assertThat(output, containsString("Payment pending"))
assertThat(output).contains("Payment pending")
}
```

Expand Down

0 comments on commit 8dd0eb2

Please sign in to comment.