Skip to content

Commit

Permalink
Add assertions for truncate filter with large integers
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanahsmith committed Oct 11, 2022
1 parent 6765d93 commit c0c191c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/integration/standard_filter_test.rb
Expand Up @@ -140,6 +140,8 @@ def test_truncate
assert_equal('1234567890', @filters.truncate('1234567890'))
assert_equal("测试...", @filters.truncate("测试测试测试测试", 5))
assert_equal('12341', @filters.truncate("1234567890", 5, 1))
assert_equal("foobar", @filters.truncate("foobar", 1 << 63))
assert_equal("...", @filters.truncate("foobar", -(1 << 63)))
end

def test_split
Expand Down

0 comments on commit c0c191c

Please sign in to comment.