|
@@ -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' ) )
|
|
|
|