Added a unicode test for OverlapLength()

This commit is contained in:
Strahinja Val Markovic 2014-08-27 15:01:16 -07:00
parent fd553d372b
commit 57b1ae129c

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2013 Google Inc.
#
@ -105,6 +106,11 @@ def OverlapLength_Basic_test():
eq_( 3, base.OverlapLength( 'foobar', 'barzoo' ) )
def OverlapLength_BasicWithUnicode_test():
eq_( 3, base.OverlapLength( u'bar fäö', u'fäö bar' ) )
eq_( 3, base.OverlapLength( u'zoofäö', u'fäözoo' ) )
def OverlapLength_OneCharOverlap_test():
eq_( 1, base.OverlapLength( 'foo b', 'b zoo' ) )