Skip to content

Commit

Permalink
Update for release 11
Browse files Browse the repository at this point in the history
  • Loading branch information
Krakert committed Jan 12, 2024
1 parent 13b105a commit c64a947
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion buildSrc/src/main/java/Config.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ object Config {

const val applicationId = "com.krakert.tracker"
const val versionName = "Clean"
const val versionCode = 10
const val versionCode = 11


}
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,23 @@ class PriceFormatterTest {

@Test
fun currentPriceFormatter_Price_Below_1() {
assertEquals("0.90447", formatter.map(0.9044717858868634))
assertEquals("0.90447", formatter.format(0.9044717858868634))
}

@Test
fun currentPriceFormatter_Price_Above_1() {
assertEquals("1.7458", formatter.map(1.7457817858868634))
assertEquals("1.7458", formatter.format(1.7457817858868634))
}

@Test
fun currentPriceFormatter_Price_Above_10() {
assertEquals("12.431", formatter.map(12.431243776886863))
assertEquals("12.431", formatter.format(12.431243776886863))
}

@Test
fun currentPriceFormatter_Price_Above_100() {
assertAll("price_above_100",
{ assertEquals("38.568,19", formatter.map(38568.18920568336)) },
{ assertEquals("149,99", formatter.map(149.9893872184712)) })
{ assertEquals("38.568,19", formatter.format(38568.18920568336)) },
{ assertEquals("149,99", formatter.format(149.9893872184712)) })
}
}

0 comments on commit c64a947

Please sign in to comment.