Skip to content

generate tests that use values in an anonymous function #7

Description

@orbeckst

I want to be able to generate tests that take a variable defined in a file and pass these to an (arbitrary) function that I define in generate.yml and then compare the output to a reference given in the generate.yml.

Something like "provide indices a and b so that you can extract the list ["fee"] from ["foo", "fee", "fum"]".

  1. get a and b from student work (eg a=1, b=2)
  2. define lambda a, b: ["foo", "fee", "fum"][a:b]
  3. compare to desired output (e.g. ["fee"])

See

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions