Author: mattip
Branch:
Changeset: r51981:73b88e7136fe
Date: 2012-01-29 05:58 +0200
http://bitbucket.org/pypy/pypy/changeset/73b88e7136fe/
Log: more scalar dot testing
diff --git a/pypy/module/micronumpy/test/test_numarray.py
b/pypy/module/micronumpy/test/test_numarray.py
--- a/pypy/module/micronumpy/test/test_numarray.py
+++ b/pypy/module/micronumpy/test/test_numarray.py
@@ -949,6 +949,8 @@
assert b[i] == 2.5 * a[i]
c = dot(4, 3.0)
assert c == 12.0
+ c = array(3.0).dot(array(4))
+ assert c == 12.0
def test_dtype_guessing(self):
from _numpypy import array, dtype, float64, int8, bool_
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit