text: const test = require('ava')
  const { create, orthogonal } = require('./index')
  
  const { compareVectors } = require('../../../test/helpers/index')
  
  test('vec3: orthogonal() with two params should update a vec3 with correct values', (t) => {
    const org1 = create()
    const ret1 = orthogonal(org1, [0, 0, 0])
    t.true(compareVectors(org1, [0, 0, 0]))
    t.true(compareVectors(ret1, [0, 0, 0]))
    t.is(org1, ret1)
  
    const org2 = create()
    const ret2 = orthogonal(org2, [3, 1, 3])
    t.true(compareVectors(org2, [-3, 0, 3]))
    t.true(compareVectors(ret2, [-3, 0, 3]))
    t.is(org2, ret2)
  
    const org3 = create()
    const ret3 = orthogonal(org3, [3, 2, 1])
    t.true(compareVectors(org3, [2, -3, 0]))
    t.true(compareVectors(ret3, [2, -3, 0]))
    t.is(org3, ret3)
  })
  