summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--test/tc_newkeys.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/tc_newkeys.py b/test/tc_newkeys.py
index d5c4e18f..d29450d9 100644
--- a/test/tc_newkeys.py
+++ b/test/tc_newkeys.py
@@ -273,7 +273,7 @@ class Tree(object):
 			last_tree = tree
 			tree = newtree
 		if isinstance(tree, dict):
-			return Tree(tree, parent=last_tree, key=char)
+			return type(self)(tree, parent=last_tree, key=char)
 		else:
 			return tree
 
@@ -291,7 +291,7 @@ class Tree(object):
 			except KeyError:
 				raise KeyError(str(char) + " not in tree " + str(tree))
 		if isinstance(tree, dict):
-			return Tree(tree, parent=last_tree, key=char)
+			return type(self)(tree, parent=last_tree, key=char)
 		else:
 			return tree
 
@@ -342,7 +342,6 @@ class Binding(object):
 		except KeyError:
 			self.direction = None
 
-
 class PressTestCase(TestCase):
 	"""Some useful methods for the actual test"""
 	def _mkpress(self, keybuffer, keymap):
@@ -398,6 +397,9 @@ class Test(PressTestCase):
 		test('<')
 		test('>')
 		test('<C-a>', 1)
+		test('<C-b>', 2)
+		for i in range(1, 26):
+			test('<C-' + chr(i+ord('a')-1) + '>', i)
 		test('k<a')
 		test('k<anz>')
 		test('k<a<nz>')
ain&id=3b936c5b46f12853510e4c3aaea4e8800d8aaf9c'>^
06d9b1a5 ^
feac887c ^

90b01a1b ^
eee09a56 ^
7f7d3dcc ^
feac887c ^
eee09a56 ^

5fdd09c5 ^

eee09a56 ^

feac887c ^



eee09a56 ^
431f739d ^
eee09a56 ^
ef790392 ^
071afeff ^

938185b3 ^







071afeff ^




431f739d ^
1b35d4cd ^
1b35d4cd ^
938185b3 ^


83c67014 ^
938185b3 ^







83c67014 ^
938185b3 ^








83c67014 ^
938185b3 ^







83c67014 ^
938185b3 ^









83c67014 ^
938185b3 ^







83c67014 ^
938185b3 ^









83c67014 ^
938185b3 ^







83c67014 ^
938185b3 ^





1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143