Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
ansi-test
ansi-test
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 13
    • Issues 13
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 6
    • Merge Requests 6
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • ansi-test
  • ansi-testansi-test
  • Merge Requests
  • !40

Merged
Created Aug 14, 2020 by Daniel Kochmański@dkochmanskiOwner

loop8: add a test for destructuring bind

  • Overview 1
  • Commits 1
  • Changes 1

6.1.1.7 Destructuring states

Destructuring allows binding of a set of variables to a corresponding set
of values anywhere that a value can normally be bound to a single
variable. During loop expansion, each variable in the variable list is
matched with the values in the values list. If there are more variables in
the variable list than there are values in the values list, the remaining
variables are given a value of nil. If there are more values than
variables listed, the extra values are discarded.

These tests check, whether loop accepts destructuring bindings where there is less values than variables.

Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: add-test-loop-dbind