diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2019-11-17 10:09:37 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2019-11-17 10:09:37 +0100 |
commit | 1e6ad5d702181bce6aeb3d0704c36f124417227d (patch) | |
tree | 62946bc5090b10d24a4cbbf7fe09dadc3b40c6c5 /lulua/writer.py | |
parent | 41f342e12b975e785de9d755d38eb92cf38f5ec5 (diff) | |
download | lulua-1e6ad5d702181bce6aeb3d0704c36f124417227d.tar.gz lulua-1e6ad5d702181bce6aeb3d0704c36f124417227d.tar.bz2 lulua-1e6ad5d702181bce6aeb3d0704c36f124417227d.zip |
Add more tests
Diffstat (limited to 'lulua/writer.py')
-rw-r--r-- | lulua/writer.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lulua/writer.py b/lulua/writer.py index bbe1efb..94ad1b4 100644 --- a/lulua/writer.py +++ b/lulua/writer.py @@ -20,6 +20,7 @@ import json from operator import itemgetter +from typing import Text from .layout import * @@ -109,7 +110,8 @@ defaultFingermap = { class SkipEvent: __slots__ = ('char', ) - def __init__ (self, char): + def __init__ (self, char: Text): + assert len (char) == 1 self.char = char def __eq__ (self, other): |