class_docstr: Tests for generating basis set default parameters
class_docstr_tok: ["Tests","for","generating","basis","set","default","parameters"]
docstr: Test that BasisFunction class creates basis function objects correctly.
docstr_tok: ["Test","that","BasisFunction","class","creates","basis","function","objects","correctly","."]
code: def test_basisfunction(self, _, __, l, alpha, coeff, r):
      """Test that BasisFunction class creates basis function objects correctly."""
  
      basis_function = qchem.BasisFunction(l, alpha, coeff, r)
  
      assert np.allclose(
          np.array(basis_function.alpha), np.array(alpha)
      )
      assert np.allclose(
          np.array(basis_function.coeff), np.array(coeff)
      )
      assert np.allclose(np.array(basis_function.r), np.array(r))
  
      assert np.allclose(basis_function.params[0], alpha)
      assert np.allclose(basis_function.params[1], coeff)
      assert np.allclose(basis_function.params[2], r)
  
file_path: pennylane/tests/qchem/test_basis_set.py
imports: import sys
  import pytest
  from pennylane import numpy
  from pennylane import qchem
label_desc: Use image node_id 1 for calling the TestBasis obj's underlying member method code with example usage: obj.test_basisfunction(_, __, l, alpha, coeff, r) without return types