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

Change Tests so that they are more Input/test type, Input, Expected Output #26

Open
mr-eggleton opened this issue Feb 26, 2021 · 2 comments

Comments

@mr-eggleton
Copy link

Then we can display in a GCSE test table type way.

@stretchyboy
Copy link
Contributor

we also need to define them that way more as we are also looking at multiple languages.
if we aren't looking at classes etc. we should stick with low key tests so most python ones are out (at least directly though pytests instrospection would be great)

@stretchyboy
Copy link
Contributor

currently

assert( calcBoilerStatus(19, 22, 18, "OFF") == "ON",  'Boiler should turn ON when too cold.', "logic");

maybe

gcsetest({
  "func":"calcBoilerStatus",
  "testing":"logic",
  "input_type":"valid",
  "inputs":[19, 22, 18, "OFF"],
  "expected":"ON",
  "message":'Boiler should turn ON when too cold.',
  "task":1
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants