class_docstr: Test circular.py.
class_docstr_tok: ["Test","circular.py","."]
docstr: Test function circ_vtest.
docstr_tok: ["Test","function","circ_vtest","."]
code: def test_circ_vtest(self):
      """Test function circ_vtest."""
      x = [0.785, 1.570, 3.141, 0.839, 5.934]
      v, pval = circ_vtest(x, dir=1)
      # Compare with the CircStats MATLAB toolbox
      assert round(v, 3) == 2.486
      assert round(pval, 4) == 0.0579
      v, pval = circ_vtest(
          x, dir=0.5, w=[0.1, 0.2, 0.3, 0.4, 0.5], d=0.2
      )
      assert round(v, 3) == 0.637
      assert round(pval, 4) == 0.2309
  
file_path: pingouin/pingouin/tests/test_circular.py
imports: import pytest
  import numpy
  from unittest import TestCase
  from scipy.stats import circmean
  from pingouin import read_dataset
  from pingouin.circular import convert_angles, _checkangles
  from pingouin.circular import circ_axial, circ_corrcc, circ_corrcl, circ_mean, circ_r, circ_rayleigh, circ_vtest
label_desc: Use image node_id 8 for calling the TestCircular obj's underlying member method code with example usage: obj.test_circ_vtest() without return types