httpexpect
httpexpect copied to clipboard
FEAT: Support negative indexes in Array
Description
Add support for negative indexes in Array methods. Syntax follows style of Python, where the -n means "nth element from the right".
Related issues
- https://github.com/gavv/httpexpect/issues/461
Changes
- Add normalization step in
Value,HasValue, andNotHasValuemethods - Update table tests
Testing
Unit tested with Go Test
Linter failures seem unrelated to changes, should I address these in separate PR or is it okay to leave them be?