how can i test a programs by using files with tests

guys i want to ask how to test a program by using files containing tests and with a go file i think. please tell me if u know a way.
As long as your program reads it's input from the parameters passed to its main\entry-point, then you would just use what ever the pipe command for your particular shell is. If you don't know what that is, then let us know what platform you are on and we can tell you.
Topic archived. No new replies allowed.