File tree Expand file tree Collapse file tree
app/src/test/java/jp/deadend/noname/skk Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package jp.deadend.noname.skk
22
33import org.junit.Assert.assertEquals
4+ import org.junit.Assert.assertNotEquals
45import org.junit.Test
56
67class EmacsNavKeysTest {
@@ -13,14 +14,13 @@ class EmacsNavKeysTest {
1314 assertEquals(0 , NAV_KEY_DISABLED )
1415 }
1516
16- @Suppress(" SimplifyBooleanWithConstants" )
1717 @Test
1818 fun testNavKeyDisabled_doesNotEqualAnyDefaultKey () {
1919 // デフォルトキーはすべて 0 より大きいこと(無効値と衝突しない)
20- assert ( NAV_LINE_START_KEY_DEFAULT != NAV_KEY_DISABLED )
21- assert ( NAV_LINE_END_KEY_DEFAULT != NAV_KEY_DISABLED )
22- assert ( NAV_FORWARD_KEY_DEFAULT != NAV_KEY_DISABLED )
23- assert ( NAV_BACKWARD_KEY_DEFAULT != NAV_KEY_DISABLED )
20+ assertNotEquals( NAV_KEY_DISABLED , NAV_LINE_START_KEY_DEFAULT )
21+ assertNotEquals( NAV_KEY_DISABLED , NAV_LINE_END_KEY_DEFAULT )
22+ assertNotEquals( NAV_KEY_DISABLED , NAV_FORWARD_KEY_DEFAULT )
23+ assertNotEquals( NAV_KEY_DISABLED , NAV_BACKWARD_KEY_DEFAULT )
2424 }
2525
2626 // --- デフォルトキーエンコード値の検証 ---
You can’t perform that action at this time.
0 commit comments