Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Rawa committed Feb 12, 2024
1 parent 1b2f948 commit c0753ea
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package net.mullvad.mullvadvpn.lib.map

import android.util.Log
import androidx.compose.runtime.Composable
import androidx.compose.runtime.DisposableEffect
import androidx.compose.runtime.remember
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@ value class Latitude(val value: Float) {

return when {
partiallyUnwound in MIN_LATITUDE_VALUE..MAX_LATITUDE_VALUE -> partiallyUnwound
partiallyUnwound > MAX_LATITUDE_VALUE -> MAX_LATITUDE_VALUE - (partiallyUnwound % MAX_LATITUDE_VALUE)
partiallyUnwound < MIN_LATITUDE_VALUE -> MIN_LATITUDE_VALUE - (partiallyUnwound % MIN_LATITUDE_VALUE)
partiallyUnwound > MAX_LATITUDE_VALUE ->
MAX_LATITUDE_VALUE - (partiallyUnwound % MAX_LATITUDE_VALUE)
partiallyUnwound < MIN_LATITUDE_VALUE ->
MIN_LATITUDE_VALUE - (partiallyUnwound % MIN_LATITUDE_VALUE)
else -> error("Unwound value $partiallyUnwound is not within valid latitude range")
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package net.mullvad.mullvadvpn.model

import kotlin.math.sqrt
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
import kotlin.math.sqrt

class LatLongTest {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
package net.mullvad.mullvadvpn.model

import kotlin.math.absoluteValue
import kotlin.test.assertEquals
import org.junit.jupiter.api.Assertions.assertDoesNotThrow

import org.junit.jupiter.api.Test
import org.junit.jupiter.api.assertThrows
import kotlin.math.absoluteValue
import kotlin.test.assertEquals

class LatitudeTest {
@Test
Expand Down Expand Up @@ -161,4 +160,4 @@ class LatitudeTest {

assertEquals(expectedValue, latitude1.distanceTo(latitude2))
}
}
}

0 comments on commit c0753ea

Please sign in to comment.