File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ object Implicits extends FlatSpec with Matchers with org.scalaexercises.definiti
105
105
def asDefaultImplicits (res0 : BigDecimal ) {
106
106
def howMuchCanIMake_? (hours : Int )(implicit dollarsPerHour : BigDecimal ) = dollarsPerHour * hours
107
107
108
- implicit val hourlyRate = BigDecimal (34.00 )
108
+ implicit val hourlyRate = BigDecimal (34 )
109
109
110
110
howMuchCanIMake_?(30 ) should be(res0)
111
111
}
@@ -116,7 +116,7 @@ object Implicits extends FlatSpec with Matchers with org.scalaexercises.definiti
116
116
def howMuchCanIMake_? (hours : Int )(implicit amount : BigDecimal , currencyName : String ) =
117
117
(amount * hours).toString() + " " + currencyName
118
118
119
- implicit val hourlyRate = BigDecimal (34.00 )
119
+ implicit val hourlyRate = BigDecimal (34 )
120
120
implicit val currencyName = " Dollars"
121
121
122
122
howMuchCanIMake_?(30 ) should be(res0)
You can’t perform that action at this time.
0 commit comments