text: from gdsctools.stats import cohens, glass
  import pytest
  
  
  
  def test_cohens():
  
      x = [1, 2, 3, 1, 2]
      y = [1, 2, 3, 4, 5, 6, 7, 8]
      assert pytest.approx(cohens(x, y), 1.3378921)
      assert cohens(x, x) == 0
  
  
  def test_glass():
  
      x = [1, 2, 3, 1, 2]
      y = [1, 2, 3, 4, 5, 6, 7, 8]
  
      g1, g2 = glass(x, y)
  
      assert g1 == 3.2271172452028631
      assert g2 == 1.1022703842524304
      g1, g2 = glass(x, x)
  
      assert g1 == g2 == 0
  
  
  def test_mt():
      from gdsctools.stats import MultipleTesting
      mt = MultipleTesting(method='fdr')
      pvalues = [1e-10, 9.5e-2, 2.2e-1, 3.6e-1, 5e-1,
                  6e-1,8e-1,9.6e-1]
      mt.plot_comparison(pvalues)
      mt.plot_comparison(pvalues, 
              methods=['fdr_bh', 'qvalue', 'bonferroni', 'fdr_tsbh'])
      
  
  