mirror of
https://github.com/ankidroid/Anki-Android.git
synced 2024-09-20 12:02:16 +02:00
[Kotlin Cleanup] DBTest
This commit is contained in:
parent
f0ae612e89
commit
ac39a3db4a
@ -19,8 +19,7 @@ import androidx.test.ext.junit.runners.AndroidJUnit4
|
||||
import com.ichi2.anki.tests.InstrumentedTest
|
||||
import com.ichi2.utils.KotlinCleanup
|
||||
import org.hamcrest.MatcherAssert.assertThat
|
||||
import org.hamcrest.Matchers.`is`
|
||||
import org.hamcrest.Matchers.not
|
||||
import org.hamcrest.Matchers.*
|
||||
import org.junit.Test
|
||||
import org.junit.runner.RunWith
|
||||
import java.util.*
|
||||
@ -39,6 +38,6 @@ class DBTest : InstrumentedTest() {
|
||||
// https://github.com/ankidroid/Anki-Android/pull/7977#issuecomment-751780273
|
||||
// https://www.sqlite.org/pragma.html#pragma_journal_mode
|
||||
val journalMode = col.db.queryString("PRAGMA journal_mode")
|
||||
assertThat(journalMode.lowercase(Locale.ROOT), not(`is`("wal")))
|
||||
assertThat(journalMode.lowercase(Locale.ROOT), not(equalTo("wal")))
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user