0));
    assertElementsEquals(
        [1, 2, 3, 4, 2, 3, 4, 1, 3, 4, 1, 2, 4, 1, 2, 3], m0);
  }

  function testInvert() {
    var m0 = goog.vec.Matrix4.createFromValues(
        1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
    assertFalse(goog.vec.Matrix4.invert(m0, m0));
    assertElementsEquals(
        [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], m0);

    goog.vec.Matrix4.setFromValues(
        m0, 1, 2, 3, 4, 2, 3, 4, 1, 3, 4, 1, 2, 4, 1, 2, 3);
    assertTrue(goog.vec.Matrix4.invert(m0, m0