Skip to content

Commit bb8da91

Browse files
committed
Fix locale issue with scripted tests
1 parent 1da59de commit bb8da91

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ before_cache:
1515
- find $HOME/.sbt -name "*.lock" -delete
1616

1717
script:
18-
- sbt "++${TRAVIS_SCALA_VERSION}" "^^${SBT_VERSION}" publishLocal test scripted
18+
- sbt "++${TRAVIS_SCALA_VERSION}" "^^${SBT_VERSION}" clean test scripted
1919

2020
matrix:
2121
include:
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package jacocotest.extra
22

3-
import java.util.Currency
3+
import java.util.{Currency, Locale}
44

55
case class Money(amount: BigDecimal, currency: Currency) {
66
override def toString: String = {
7-
"%.2f %s".format(amount, currency.getSymbol)
7+
"%.2f %s".format(amount, currency.getSymbol(Locale.forLanguageTag("en-GB")))
88
}
99
}

0 commit comments

Comments
 (0)