sliced() silently accepts negative slice sizes instead of raising ValueError
sliced() silently accepts negative slice sizes instead of raising ValueError: a task in Repo2RLEnv R2E-Gym / SWEGEN (Harbor dataset). When calling sliced() with a negative n , the function should raise a ValueError to indicate that negative slice sizes are not valid. Instead, it currently accepts…
The task
When calling `sliced()` with a negative `n`, the function should raise a `ValueError` to indicate that negative slice sizes are not valid. Instead, it currently accepts the value silently and produces incorrect or undefined behavior.
Part of FineEnvs/repo2rlenv-r2e-gym.