.vec.vec2d.min(v2, 10, v2);
    assertElementsEquals([5, 10], v2);
  }

  function testEquals() {
    var v0 = goog.vec.vec2d.setFromValues(goog.vec.vec2d.create(), 1, 2);
    var v1 = goog.vec.vec2d.setFromVec2d(goog.vec.vec2d.create(), v0);
    assertElementsEquals(v0, v1);

    v1[0] = 4;
    assertFalse(goog.vec.vec2d.equals(v0, v1));

    v1 = goog.vec.vec2d.setFromVec2d(goog.vec.vec2d.create(), v0);
    v1[1] = 4;
    assertFalse(goog.vec.vec2d.equals(v0, v1));
  }

</script>
</body>
