Skip to content

Parallel iteration with optional break fails #13

@AndreVanDelft

Description

@AndreVanDelft

AboutIterations

koan(6)(
  """
  | `..?` in combination with a parallel operator may
  | model an unlimited group of processes each of which start
  | with an externally triggered action.
  """
) {
script..
  s = ..? & b c d

test(1) {runWithInput(s)(           ); thenActivatedOrSuccess(__`b,S`)}
test(2) {runWithInput(s)(b          ); thenActivatedOrSuccess(__`b,c`)}
test(3) {runWithInput(s)(b,b        ); thenActivatedOrSuccess(__`b,c`)}
test(4) {runWithInput(s)(b,b,c      ); thenActivatedOrSuccess(__`b,c,d`)}
test(5) {runWithInput(s)(b,b,c,d    ); thenActivatedOrSuccess(__`b,c`)}
test(6) {runWithInput(s)(b,c,b,d,c,d); thenActivatedOrSuccess(__`b,S`)}
}

Failures:

Test 5: Set(b) did not contain only (b, c)
Test 6: Set(b) did not contain only (b, S) (KoanSuite.scala:86)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions