MCPcopy Create free account
hub / github.com/Julow/Unexpected-Keyboard / equals

Method equals

test/juloo.keyboard2/KeyValueTest.java:12–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10 public KeyValueTest() {}
11
12 @Test
13 public void equals()
14 {
15 assertEquals(KeyValue.makeStringKey("Foo").withSymbol("Symbol"),
16 KeyValue.makeMacro("Symbol", new KeyValue[] { KeyValue.makeStringKey("Foo") }, 0));
17 assertEquals(KeyValue.getSpecialKeyByName("tab"),
18 KeyValue.keyeventKey(0xE00F, KeyEvent.KEYCODE_TAB, KeyValue.FLAG_KEY_FONT | KeyValue.FLAG_SMALLER_FONT));
19 assertEquals(KeyValue.getSpecialKeyByName("tab").withSymbol("t"),
20 KeyValue.keyeventKey("t", KeyEvent.KEYCODE_TAB, 0));
21 assertEquals(KeyValue.getSpecialKeyByName("tab").withSymbol("tab"),
22 KeyValue.keyeventKey("tab", KeyEvent.KEYCODE_TAB, KeyValue.FLAG_SMALLER_FONT));
23 }
24
25 @Test
26 public void numpad_script()

Callers

nothing calls this directly

Calls 5

makeStringKeyMethod · 0.95
makeMacroMethod · 0.95
getSpecialKeyByNameMethod · 0.95
keyeventKeyMethod · 0.95
withSymbolMethod · 0.80

Tested by

no test coverage detected