Merge branch 'bzr/golem' of /Users/distler/Sites/code/instiki

This commit is contained in:
Jacques Distler 2009-09-07 20:44:57 -05:00
commit 2068683ee8
3 changed files with 14 additions and 2 deletions

View file

@ -12,6 +12,12 @@ class CategoryTest < Test::Unit::TestCase
match(Category, ':category: test', :list => ['test'], :hidden => ':')
end
def test_no_category
match(Category, 'category: ', :list => [], :hidden => nil)
match(Category, 'category : chunk test , ', :list => ['chunk test'], :hidden => nil)
match(Category, ':category:', :list => [], :hidden => ':')
end
def test_multiple_categories
match(Category, 'category: test, multiple', :list => ['test', 'multiple'], :hidden => nil)
match(Category, 'category : chunk test , multi category,regression test case ',
@ -26,4 +32,9 @@ class CategoryTest < Test::Unit::TestCase
)
end
def test_multiple_categories_invalid_utf8
match(Category, "category: test, multiple,\000egg", :list => ['test', 'multiple', 'egg'], :hidden => nil)
match(Category, "category : chunk test , multi category,,e\000gg", :list => ['chunk test', 'multi category', 'egg'], :hidden => nil)
end
end