nac3standalone: add tests for list slice and len #178
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: M-Labs/nac3#178
Loading…
Reference in New Issue
No description provided.
Delete Branch "add_list_len_test"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add tests for list slice and
len
Actually I think it might be better to fuzz test these things using cpython
rand
, but since we only support dropping part of the list while the generated random numbers are also very likely to be extending the list, so I still manually wrote these tests, which should be able to cover a big portion of use cases..You could generate test cases using a RNG and save the result, but unit tests need to be deterministic. Debugging failures would be very annoying otherwise.