httpexpect icon indicating copy to clipboard operation
httpexpect copied to clipboard

FEAT: Support negative indexes in Array

Open jgfranco17 opened this issue 4 months ago • 1 comments

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, and NotHasValue methods
  • Update table tests

Testing

Unit tested with Go Test

jgfranco17 avatar Aug 18 '25 13:08 jgfranco17

Linter failures seem unrelated to changes, should I address these in separate PR or is it okay to leave them be?

jgfranco17 avatar Aug 18 '25 13:08 jgfranco17