<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -78,6 +78,19 @@ Items are not almost equal:
     else:
         assert_almost_equal(x, y)
 
+class TestHypot(object):
+    def test_simple(self):
+        x = np.array([1.])
+
+        assert_array_almost_equal(np.hypot(x, x), np.sqrt(2))
+
+    def test_nan_inf(self):
+        assert_almost_equal_spec(np.hypot(np.inf, np.nan), np.inf)
+        assert_almost_equal_spec(np.hypot(-np.inf, np.nan), np.inf)
+
+        assert_almost_equal_spec(np.hypot(np.nan, np.inf), np.inf)
+        assert_almost_equal_spec(np.hypot(np.nan, -np.inf), np.inf)
+
 class TestCexp(object):
     def test_simple(self):
         check = check_complex_value </diff>
      <filename>numpy/core/tests/test_umath_complex.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>9155de9b2806955e58c6953587953319a924c0df</id>
    </parent>
  </parents>
  <author>
    <name>David Cournapeau</name>
    <email>david@ar.media.kyoto-u.ac.jp</email>
  </author>
  <url>http://github.com/cournape/numpy/commit/ca70d3cd014c072c69f2d6d4fe48f10983b04529</url>
  <id>ca70d3cd014c072c69f2d6d4fe48f10983b04529</id>
  <committed-date>2009-07-19T01:01:01-07:00</committed-date>
  <authored-date>2009-07-19T01:01:01-07:00</authored-date>
  <message>Add tests for hypot function.</message>
  <tree>13b09007de80e7e77533792d0e984c5fdae9f253</tree>
  <committer>
    <name>David Cournapeau</name>
    <email>david@ar.media.kyoto-u.ac.jp</email>
  </committer>
</commit>
