Coverage for modules/org/openteacher/logic/wordsString/parserTest/parserTest : 100%
Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
|
#! /usr/bin/env python3 # -*- coding: utf-8 -*-
# Copyright 2011-2013, Marten de Vries # # This file is part of OpenTeacher. # # OpenTeacher is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # OpenTeacher is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with OpenTeacher. If not, see <http://www.gnu.org/licenses/>.
except Exception as e: # pragma: no cover print(mod) raise
u"one", [[u"one"]] )
u"one, two", [[u"one", u"two"]] )
u"one; two", [[u"one", u"two"]] )
u"1. one 2. two", [[u"one"], [u"two"]] )
u"1. one, uno 2. two", [[u"one", u"uno"], [u"two"]] )
u"1. one 3. two", [[u"one"], [u"two"]] )
u"être", [[u"être"]] )
u"1. 2. 3. 4. ", [], )
u"100 ", [[u"100"]], )
u"1.000.000", [[u"1.000.000"]], )
u",,,", [], )
u";;;", [], )
u"I like to say \\1. and \\2. You too?", [["I like to say \\1. and \\2. You too?"]] )
u"one\\, two", [["one\\, two"]] )
u"one\\; two", [["one\\; two"]] )
u"9999999999999999999. one 2222222222222222222222222222. two", [["one"], ["two"]] )
"""Thanks for reporting, Thomas Guettler! https://bugs.launchpad.net/openteacher/+bug/1233809
""" "Am 20. Mai habe ich ...", [["Am 20. Mai habe ich ..."]], )
self._mm.mods(type="wordsStringParser"), )
|