Instiki 0.17.2: Security Release
This release upgrades Instiki to Rails 2.3.4, which patches two security holes in Rails. See http://weblog.rubyonrails.org/2009/9/4/ruby-on-rails-2-3-4 There are also some new features, and the usual boatload of bugfixes. See the CHANGELOG for details.
This commit is contained in:
parent
34c4306867
commit
4bdf703ab2
211 changed files with 3959 additions and 1325 deletions
|
@ -231,7 +231,19 @@ class MultibyteCharsUTF8BehaviourTest < Test::Unit::TestCase
|
|||
assert_nil @chars.index('u')
|
||||
assert_equal 0, @chars.index('こに')
|
||||
assert_equal 2, @chars.index('ち')
|
||||
assert_equal 2, @chars.index('ち', -2)
|
||||
assert_equal nil, @chars.index('ち', -1)
|
||||
assert_equal 3, @chars.index('わ')
|
||||
assert_equal 5, 'ééxééx'.mb_chars.index('x', 4)
|
||||
end
|
||||
|
||||
def test_rindex_should_return_character_offset
|
||||
assert_nil @chars.rindex('u')
|
||||
assert_equal 1, @chars.rindex('に')
|
||||
assert_equal 2, @chars.rindex('ち', -2)
|
||||
assert_nil @chars.rindex('ち', -3)
|
||||
assert_equal 6, 'Café périferôl'.mb_chars.rindex('é')
|
||||
assert_equal 13, 'Café périferôl'.mb_chars.rindex(/\w/u)
|
||||
end
|
||||
|
||||
def test_indexed_insert_should_take_character_offsets
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue