Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generate tests that use values in an anonymous function #7

Open
orbeckst opened this issue Jan 24, 2024 · 0 comments
Open

generate tests that use values in an anonymous function #7

orbeckst opened this issue Jan 24, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@orbeckst
Copy link
Contributor

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

@orbeckst orbeckst added the enhancement New feature or request label Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant