From 11da098db2d752685c4d4852eaac937364ea16d0 Mon Sep 17 00:00:00 2001 From: Daniel DiPaolo Date: Thu, 13 Nov 2003 22:02:33 +0000 Subject: [PATCH] Added a new test for the OptionList stuff to check to see if parsing is working as expected. --- test/test_MoobotFactoids.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_MoobotFactoids.py b/test/test_MoobotFactoids.py index 0907779f4..33205d08d 100644 --- a/test/test_MoobotFactoids.py +++ b/test/test_MoobotFactoids.py @@ -61,6 +61,8 @@ if sqlite is not None: [['foo','bar','baz']]) self.assertEqual(MF.tokenize('(foo|(bar|baz))'), [['foo', ['bar', 'baz']]]) + self.assertEqual(MF.tokenize('(a|b (c|d))'), + [['a', ['b', ['c', 'd']]]]) class FactoidsTestCase(PluginTestCase, PluginDocumentation): plugins = ('MoobotFactoids', 'User', 'Utilities')