Skip to content

Commit

Permalink
Update test and some other thing
Browse files Browse the repository at this point in the history
  • Loading branch information
Pepijn98 committed Nov 15, 2019
1 parent e9cc55d commit dc84017
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
}

group = "com.github.azurlane-api"
version = "1.3.0"
version = "1.3.1"

java {
sourceCompatibility = JavaVersion.VERSION_1_8
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/com/github/azurlane_api/api/ALInfo.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.github.azurlane_api.api

object ALInfo {
const val version = "1.3.0"
const val version = "1.3.1"
const val baseUrl = "https://azurlane-api.herokuapp.com/v2"
const val userAgent = "AzurLaneKt/v$version (https://github.com/azurlane-api/AzurLaneKt)"
}
8 changes: 4 additions & 4 deletions src/test/kotlin/com/github/azurlane_api/AzurLaneTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package com.github.azurlane_api

import com.github.azurlane_api.api.ALInfo
import com.github.azurlane_api.api.AzurLane
import com.github.azurlane_api.api.Order
import com.github.azurlane_api.api.Category
import com.github.azurlane_api.api.entities.SmallShip
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
Expand All @@ -27,19 +27,19 @@ class AzurLaneTest {

@Test
fun `list of ships ordered by rarity`() {
val ships = azurlane.getShips(Order.RARITY, "Super Rare")
val ships = azurlane.getShips(Category.RARITY, "Super Rare")
assert(ships.contains(SmallShip("244", "Prinz Eugen")))
}

@Test
fun `list of ships ordered by type`() {
val ships = azurlane.getShips(Order.TYPE, "Destroyer")
val ships = azurlane.getShips(Category.TYPE, "Destroyer")
assert(ships.contains(SmallShip("103", "Vampire")))
}

@Test
fun `list of ships ordered by affiliation`() {
val ships = azurlane.getShips(Order.AFFILIATION, "Sardegna Empire")
val ships = azurlane.getShips(Category.AFFILIATION, "Sardegna Empire")
assert(ships.contains(SmallShip("413", "Zara")))
}

Expand Down

0 comments on commit dc84017

Please sign in to comment.