abouttreesummaryrefslogcommitdiff
path: root/test/juloo.keyboard2
diff options
context:
space:
mode:
authorJules Aguillon2024-09-29 22:05:54 +0200
committerJules Aguillon2024-09-29 22:05:54 +0200
commit700ec23bd465fa74828ffd6dfbc42dfc81731510 (patch)
tree46afeeebc8a543cc55493bbc361ca27f106a2ded /test/juloo.keyboard2
parentfb93d841a575729de355d0d53cc4f5b7acd09410 (diff)
downloadunexpected-keyboard-700ec23bd465fa74828ffd6dfbc42dfc81731510.tar.gz
unexpected-keyboard-700ec23bd465fa74828ffd6dfbc42dfc81731510.zip
Improve Ctrl key labels for Serbian Cyrillic layout
Add the ':char' syntax for defining character keys with a different symbol. This new kind of keys is used to implement Ctrl combinations in the Serbian Cyrillic layout without showing latin letters while the Ctrl modifier is activated.
Diffstat (limited to 'test/juloo.keyboard2')
-rw-r--r--test/juloo.keyboard2/KeyValueParserTest.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/juloo.keyboard2/KeyValueParserTest.java b/test/juloo.keyboard2/KeyValueParserTest.java
index 900ae3d..a636ebf 100644
--- a/test/juloo.keyboard2/KeyValueParserTest.java
+++ b/test/juloo.keyboard2/KeyValueParserTest.java
@@ -10,7 +10,7 @@ public class KeyValueParserTest
public KeyValueParserTest() {}
@Test
- public void parse() throws Exception
+ public void parseStr() throws Exception
{
Utils.parse(":str:'Foo'", KeyValue.makeStringKey("Foo"));
Utils.parse(":str flags='dim':'Foo'", KeyValue.makeStringKey("Foo", KeyValue.FLAG_SECONDARY));
@@ -34,6 +34,13 @@ public class KeyValueParserTest
Utils.expect_error(":str flags='':'");
}
+ @Test
+ public void parseChar() throws Exception
+ {
+ Utils.parse(":char symbol='a':b", KeyValue.makeCharKey('b', "a", 0));
+ Utils.parse(":char:b", KeyValue.makeCharKey('b', "b", 0));
+ }
+
/** JUnit removes these functions from stacktraces. */
static class Utils
{