oneDPL icon indicating copy to clipboard operation
oneDPL copied to clipboard

Add test for std::real(std::complex) and std::imag(std::complex)

Open SergeyKopienko opened this issue 2 years ago • 0 comments

Which functions were tested:

  • std::complex<T>::complex - constructor
  • std::complex<T>::imag
  • std::complex<T>::real
  • std::abs(std::complex<T>)
  • std::arg(std::complex<T>)
  • std::conj(std::complex<T>)
  • std::exp(std::complex<T>)
  • std::imag(std::complex<T>)
  • std::real(std::complex<T>)
  • arithmetic functions from https://en.cppreference.com/w/cpp/numeric/complex/operator_arith
  • arithmetic functions from https://en.cppreference.com/w/cpp/numeric/complex/operator_arith2
  • arithmetic functions from https://en.cppreference.com/w/cpp/numeric/complex/operator_arith3
  • functions from https://en.cppreference.com/w/cpp/numeric/complex/operator_cmp
  • functions from https://en.cppreference.com/w/cpp/numeric/complex/operator%3D

Where these functions were tested:

  • on host;
  • in Kernel.

Additional points:

  • Added ability to these new tests generate errors from test classes on host and in Kernel (filename, line no, error msg);
  • Added ability to these new tests continue current test work after first error and show all errors (on host) and some amount of first errors (in kernel - 3 first errors) which occurred during test run.

SergeyKopienko avatar Aug 04 '22 10:08 SergeyKopienko