Added a new test for the OptionList stuff to check to see if parsing is working

as expected.
This commit is contained in:
Daniel DiPaolo 2003-11-13 22:02:33 +00:00
parent f3e2e2a1ed
commit 11da098db2

View File

@ -61,6 +61,8 @@ if sqlite is not None:
[['foo','bar','baz']]) [['foo','bar','baz']])
self.assertEqual(MF.tokenize('(foo|(bar|baz))'), self.assertEqual(MF.tokenize('(foo|(bar|baz))'),
[['foo', ['bar', 'baz']]]) [['foo', ['bar', 'baz']]])
self.assertEqual(MF.tokenize('(a|b (c|d))'),
[['a', ['b', ['c', 'd']]]])
class FactoidsTestCase(PluginTestCase, PluginDocumentation): class FactoidsTestCase(PluginTestCase, PluginDocumentation):
plugins = ('MoobotFactoids', 'User', 'Utilities') plugins = ('MoobotFactoids', 'User', 'Utilities')