Skip to content

Commit

Permalink
Add testcase for TestCalculateResellPrice
Browse files Browse the repository at this point in the history
  • Loading branch information
jesse-kroon authored Jan 15, 2024
1 parent d1a22bd commit a1e38b2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions exercises/concept/vehicle-purchase/vehicle_purchase_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@ func TestCalculateResellPrice(t *testing.T) {
age: 2.5,
expected: 32000,
},
{
name: "price is reduced to 70% for age 3",
originalPrice: 40000,
age: 3,
expected: 28000,
},
{
name: "price is reduced to 70% for age 7",
originalPrice: 40000,
Expand Down

0 comments on commit a1e38b2

Please sign in to comment.