show/test that _testrepr() reprs Numeric arrays nicely, too

git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@491 4cde692c-a291-49d1-8350-778aa11640f8
This commit is contained in:
jvr 2005-02-25 10:47:36 +00:00
parent 82fdf153ac
commit 0ec07f2dbc

View File

@ -279,8 +279,8 @@ def calcCubicPoints(a, b, c, d):
def _testrepr(obj): def _testrepr(obj):
""" """
>>> _testrepr([1, [2, 3], [], [[2, [3, 4]]]]) >>> _testrepr([1, [2, 3], [], [[2, [3, 4], Numeric.array([0.1, 2.2])]]])
'(1, (2, 3), (), ((2, (3, 4))))' '(1, (2, 3), (), ((2, (3, 4), (0.1, 2.2))))'
""" """
try: try:
it = iter(obj) it = iter(obj)