Added a unicode test for OverlapLength()
This commit is contained in:
parent
fd553d372b
commit
57b1ae129c
@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
#
|
#
|
||||||
# Copyright (C) 2013 Google Inc.
|
# Copyright (C) 2013 Google Inc.
|
||||||
#
|
#
|
||||||
@ -105,6 +106,11 @@ def OverlapLength_Basic_test():
|
|||||||
eq_( 3, base.OverlapLength( 'foobar', 'barzoo' ) )
|
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():
|
def OverlapLength_OneCharOverlap_test():
|
||||||
eq_( 1, base.OverlapLength( 'foo b', 'b zoo' ) )
|
eq_( 1, base.OverlapLength( 'foo b', 'b zoo' ) )
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user