Skip to content

Nested looping and ranges #29

@stevenvachon

Description

@stevenvachon

Nested Looping

array = [ [1], [1] ];
expect(array).to.all.all.equal(1);

but then, how would we handle 3+ levels deep?:

expect(array).to.all(3).equal(1);

...but something less mathematical.

Ranged Looping

expect(array).to.each(startIndex, endIndex).equal(1);

Synonyms

each could also be a nice general synonym for all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions