Dale Dai
0e7f8284a3
Add error tests in doctest and fix error message ( #10930 )
...
* Add error tests in doctest and fix error message
* Change AssertationError to ValueError
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-10-26 01:27:46 -04:00
Christian Clauss
3f094fe49d
Ruff pandas vet ( #10281 )
...
* Python linting: Add ruff rules for Pandas-vet and Pytest-style
* updating DIRECTORY.md
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2023-10-11 14:30:02 -04:00
Dhruv Manilawala
38dfcd28b5
fix: test failures ( #6250 )
...
1. Incorrect function was being imported from the module
2. Testing for exception was not done correctly
2022-07-14 12:54:24 +05:30
lakshmikanth ayyadevara
dcc387631d
Improve prime_check
in math modules ( #6044 )
...
* improved prime_check
* updating DIRECTORY.md
* included suggested changes
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-07-11 23:29:27 +08:00
Nikos Giachoudis
f7c58e4c4b
Unify primality checking ( #6228 )
...
* renames prime functions and occurances in comments
* changes implementation of primality testing to be uniform
* adds static typing as per conventions
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-07-11 22:36:57 +08:00
Murilo Gonçalves
07141e4bcc
Add doctests to prime_check function ( #5503 )
...
* added doctests to prime_check function
* fix doctests function name
2021-10-23 01:14:27 +08:00
Rolv Apneseth
04fae4db9b
Improved and shortened prime_check.py ( #3454 )
...
* Made small improvements and shortened prime_check.py
* improved descriptions on tests in prime_check.py
* Ran black and isort
2020-10-24 00:17:29 +08:00
Björn Olsson Jarl
ab5a046581
Added type hints and doctest for maths/prime_check. ( #2367 )
...
* Added type hints and doctest for maths/prime_check.
* Removed doctests.
2020-08-29 17:11:02 +02:00
William Zhang
9eac17a408
psf/black code formatting ( #1277 )
2019-10-05 10:14:13 +05:00
Alfonso Rodríguez Pereira
5f991f7740
#315 Renamed all files to snake_case ( #993 )
2019-07-11 11:16:42 +02:00