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 5
    • Merge Requests 5
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • ansi-test
  • ansi-testansi-test
  • Merge Requests
  • !40

Merged
Opened 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
Reference: ansi-test/ansi-test!40
Source branch: add-test-loop-dbind

Revert this merge request

This will create a new commit in order to revert the existing changes.

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.

Cherry-pick this merge request

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.