Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: rewrite tests #61

Draft
wants to merge 23 commits into
base: main
Choose a base branch
from
Draft

tests: rewrite tests #61

wants to merge 23 commits into from

Conversation

qexat
Copy link
Owner

@qexat qexat commented Apr 24, 2024

Fixes #58

  • Rewrite tests for the literal (all cases)
  • Rewrite tests for the utils
  • Rewrite fixtures and put them in a conftest.py
  • Rewrite tests for the list class
    • properties head, tail, init, last
    • method prepend
    • method reversed
      Cases: duplicate items
    • method sorted
      Cases: duplicate items, all same items, key provided, reversed
    • method shuffled
      Cases: duplicate items, all same items
    • method map
      Cases: function (T) -> T, function (T) -> U
    • method rotate
      Cases: n = 1, n >= 2, n = 0, n < 0
    • method filter
      Cases: all same items, all "truthy" items, all "falsy" items
    • method mask
      Cases: mask all True, mask all False, mask different length
    • method deduplicate
      Cases: no duplicate items, all same items
    • method reduce
      Cases: ...
    • method reduce_right
      Cases: ...
    • method fold
      Cases: ...
    • method fold_right
      Cases: ...
    • method scan
      Cases: ...
    • method scan_right
      Cases: ...
    • method merge
      Cases: ...
    • method flatten
      Cases: ...
    • method sum
      Cases: ...
    • method mean
      Cases: ...
    • method min
      Cases: ...
    • method max
      Cases: ...
    • method fill_left
      Cases: ...
    • method fill_right
      Cases: ...
    • method interleave
      Cases: ...
    • method select
      Cases: ...
    • method take
      Cases: ...
    • method take_right
      Cases: ...
    • method drop
      Cases: ...
    • method drop_right
      Cases: ...
    • method slice
      Cases: ...
    • method partition
      Cases: ...
    • method bisect
      Cases: ...
    • method trisect
      Cases: ...

For all: cases: empty, 1 item, 2+ items

@qexat qexat added area: test Related to the test suite refactor labels Apr 24, 2024
@qexat qexat self-assigned this Apr 24, 2024
@qexat qexat marked this pull request as draft April 24, 2024 09:39
@qexat qexat modified the milestones: v2.4.x, v2.5.x Apr 24, 2024
@qexat
Copy link
Owner Author

qexat commented Apr 24, 2024

At this point the tests check fails because coverage is under 100% since I deleted list_test.py

isort: Remove conflictin g configuration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: test Related to the test suite refactor
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

chore: rewrite the tests
1 participant