0
0
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:
oyeraghib 2022-04-30 08:33:51 +05:30 committed by Mike Hardy
parent f0ae612e89
commit ac39a3db4a

View File

@ -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")))
}
}