From 705eabe249d07dd569ea4c5b6af134a718a65db0 Mon Sep 17 00:00:00 2001 From: hut Date: Fri, 12 Feb 2010 20:33:01 +0100 Subject: keyparser: minor changes --- test/tc_newkeys.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'test') 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('', 1) + test('', 2) + for i in range(1, 26): + test('', i) test('k') test('k') -- cgit 1.4.1-2-gfad0 wtxt/commit/svc/db.go?h=v0.4.15&id=24e86fbcc7d8c4332290428959228d1df23f8872'>commit diff stats
path: root/svc/db.go
blob: 8cd05d1d542be67c0fbaa30c3a861b2862729d27 (plain) (blame)
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