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

Add an input test case #5

Open
voltrevo opened this issue Mar 8, 2023 · 0 comments
Open

Add an input test case #5

voltrevo opened this issue Mar 8, 2023 · 0 comments
Labels
good first issue Good for newcomers

Comments

@voltrevo
Copy link
Owner

voltrevo commented Mar 8, 2023

Input test cases for ValueScript are really simple.

All you have to do is write a program like this:

// test_output! "Hello world!"

export default function() {
  return "Hello world!";
}

and save it in inputs/passing or inputs/failing.

Passing means the program behaves as intended, failing means it does something else.

If your program throws an exception or otherwise panics, you can't use test_output!, but adding these programs is still very important.

If your program does run to completion, even if the output is wrong, use test_output! and include the incorrect output. Add a comment below that saying what the output should be instead.

(By the way, exceptions shouldn't panic... they just currently do.)

@voltrevo voltrevo added the good first issue Good for newcomers label Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant