mirror of
https://github.com/MinimalBible/MinimalBible
synced 2025-07-05 15:54:44 -04:00
Fix the download progress not updating
Integer roundoff errors...
This commit is contained in:
20
app-test/src/test/kotlin/DLProgressEventTest.kt
Normal file
20
app-test/src/test/kotlin/DLProgressEventTest.kt
Normal file
@ -0,0 +1,20 @@
|
||||
/**
|
||||
* Created by bspeice on 11/20/14.
|
||||
*/
|
||||
|
||||
import org.junit.Test
|
||||
import org.bspeice.minimalbible.activity.downloader.manager.DLProgressEvent
|
||||
import org.crosswire.jsword.book.Book
|
||||
import org.mockito.Mockito
|
||||
import org.junit.Assert
|
||||
|
||||
class DLProgressEventTest {
|
||||
|
||||
val b = Mockito.mock(javaClass<Book>())
|
||||
|
||||
Test fun fiftyPercentIsOneEighty() {
|
||||
|
||||
val e = DLProgressEvent(50, b)
|
||||
Assert.assertEquals(180, e.toCircular())
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user