Commit Graph

44 Commits

Author SHA1 Message Date
Daniel DiPaolo
a35e185c4b Just changed a var name to be more clear in _lock for MF, and finally fixed the
MF tests so that they all pass (without removing test functionality)!
2004-02-17 06:33:23 +00:00
Jeremy Fincher
32aa12b118 Finally fixed test0rz. 2004-02-17 05:18:58 +00:00
Jeremy Fincher
465e12e14e Mess up in rewrite. 2004-02-17 05:05:40 +00:00
Jeremy Fincher
37247adcea Rewrite of OptionListTestCase to actually test things well. 2004-02-17 05:00:00 +00:00
Daniel DiPaolo
98cc71d5c9 Fixed quoting issues (permanently, I hope) in the tests. 2004-02-17 04:49:00 +00:00
Jeremy Fincher
48d6c982ce Made a SupyTestCase base class to handle COOL STUFF\! 2004-02-16 04:12:35 +00:00
Jeremy Fincher
175c73d164 You gotta have an encoding, dude. 2004-02-13 10:07:43 +00:00
Daniel DiPaolo
5aef3f2e02 Removed all instances of repr()'ing (or "%r" % ...'ing) factoid values or keys,
as that mucks about with unicode input/output which is desirable to keep.
2004-02-10 14:01:50 +00:00
Daniel DiPaolo
9d7c1a64c2 Make it so that ACTIONs don't get added as factoids 2004-01-11 23:22:59 +00:00
Daniel DiPaolo
38b9cfadc7 Adding a test to make sure that bad nesting errors out completely and doesn't
call things like addFactoid.
2003-12-19 22:37:04 +00:00
Jeremy Fincher
2a9d9d1b5d Reworked so there's no double-import problem. 2003-12-02 12:27:45 +00:00
Daniel DiPaolo
8dc24b2d50 Implemented usability fix (RFE #849691) where if listkeys returns only one
factoid key, it should just return the value.
2003-11-26 16:20:57 +00:00
Daniel DiPaolo
f8e920ef36 Added some pickOptions tests 2003-11-14 16:15:01 +00:00
Jeremy Fincher
d4e5047ebf Fixed bugs in option parsing. 2003-11-14 15:49:13 +00:00
Daniel DiPaolo
fba0e908f7 Backed out the last test addition. 2003-11-13 22:11:39 +00:00
Daniel DiPaolo
11da098db2 Added a new test for the OptionList stuff to check to see if parsing is working
as expected.
2003-11-13 22:02:33 +00:00
Jeremy Fincher
bb9cb5d67c Fixed some bugs, tested some more and fixed those two. Boomshakalaka! 2003-11-10 22:43:19 +00:00
Daniel DiPaolo
473ce16776 Added more tests for the lexer, to make sure stuff within dangling parens is
left alone.
2003-11-10 20:25:24 +00:00
Jeremy Fincher
9dd2680a9f Fix for bug #839053 (parens without bars not handled correctly). 2003-11-10 10:46:57 +00:00
Daniel DiPaolo
3f1296a858 Fixed some text to read a bit better. Still doesn't look quite perfect though 2003-11-06 21:22:13 +00:00
Jeremy Fincher
2a33262b9e Converted to be somewhat clearer than _mostDict. 2003-11-06 21:10:47 +00:00
James Vega
3995cc3414 Switched to assertError for when no factoids exist and added testing of author
ordering
2003-11-06 20:22:02 +00:00
James Vega
a55193ea62 Added @most <popular|authored|recent> (RFE #829830) 2003-11-06 17:24:49 +00:00
Daniel DiPaolo
cc94948d10 Fixed greedniess of a few regexes and did some associated fixes. 2003-11-03 06:25:02 +00:00
Daniel DiPaolo
96f299c10c Included plugins.standardSubstitute in factoids parsing now 2003-11-02 23:45:31 +00:00
Daniel DiPaolo
82d2d8162a Fixed a bug where addFactoid wasn't splitting on the first "is" 2003-11-01 22:08:52 +00:00
Daniel DiPaolo
f0b850118b MoobotFactoids should be pretty dang close to finished now. Got the "_is_"
syntax working just fine.
2003-10-29 03:01:02 +00:00
Daniel DiPaolo
2527f47cb6 Punctuation ("?!") is now stripped from keys before insertion into the db 2003-10-28 15:30:43 +00:00
Daniel DiPaolo
63c86ec366 Removed a test that was left over from the unified Dunno/MoobotFactoids module 2003-10-28 06:13:05 +00:00
Daniel DiPaolo
084fe1854f More MoobotFactoids/Dunno separation fun and fixes 2003-10-28 05:31:51 +00:00
Jeremy Fincher
660ba14e96 Fixed some failing test cases. 2003-10-24 11:03:43 +00:00
Daniel DiPaolo
1b25a207bf Made MoobotFactoids case insensitive, and added tests to make sure that
case-insensitivity works.
2003-10-24 01:03:18 +00:00
Jeremy Fincher
f09928e5cd Fixed RFE #827285. 2003-10-21 23:21:32 +00:00
Jeremy Fincher
232c634436 Made to load Owner by default. 2003-10-21 20:47:55 +00:00
Daniel DiPaolo
86b633cfe6 Fixed MoobotFactoids tests to jive with new "glob by default" behavior. 2003-10-21 20:23:59 +00:00
Daniel DiPaolo
d470488788 Fixed to accomodate changed plugin names ("MiscCommands" -> "Misc", e.g.) 2003-10-21 16:54:08 +00:00
Daniel DiPaolo
d959f84b73 Got most of the dunno stuff in place. 2003-10-21 15:44:17 +00:00
Jeremy Fincher
ab2bea589a Changed the names of the src/ plugins. 2003-10-21 06:03:57 +00:00
Daniel DiPaolo
aee5c6c18e * Finished up MoobotFactoids, I think. Added delete, augmentFactoids (foo is
also bar), and replaceFactoids (no foo is bar), as well as cleaning up some
  of the regexps that were there (we allow spaces in the factoids, dummy!), and
  also made the addFactoids regexp more accomodating to other phrases with the
  word "is" in them :)  Also, updated the tests for it, of course.
2003-10-16 05:27:01 +00:00
Daniel DiPaolo
ea024def78 * Fixed some quoting issues in list*. Adopted the practice of repr()'ing all
factoid keys before displaying them (idea stolen from searchfactoids in
  Factoids).  Also fixed them in the tests as well as adding a test to insure
  that it's done right.
* Added the listkeys and listvalues commands.
2003-10-16 03:51:53 +00:00
Daniel DiPaolo
ddfd7e10e1 * LOTS of updates to the MoobotFactoids test suite, parts of which aren't ready
yet, but the test targets should be pretty static from here on out, except
  adding new tests.
* Fixed up lock and coded unlock in MoobotFactoids (actually, factored the
  common code out into one helper function that each call).
* Added the changeFactoids (=~) portion.
* Changed the table structure again (should be the last time).  Locked_by was
  redundant if we're only going to let factoid creators lock/unlock.  Removed
  it.
2003-10-16 02:03:35 +00:00
Jeremy Fincher
cb4b35704c Fixed timeouts. 2003-10-14 16:06:43 +00:00
Daniel DiPaolo
27796b01a3 * Updating MoobotFactoids tests to include more tests (testGetFactoid) 2003-10-14 15:17:08 +00:00
Daniel DiPaolo
3ae813674e * adding MoobotFactoids stuff as per jemfinch's request - though it's not quite
done yet
2003-10-13 21:22:16 +00:00