-
Files starting with valid.* should parse with no errors.
-
Files starting with invalid.* should not parse and should throw an error.
-
You should be able to run a testcase with
./simple < testcases/<a file from the repository>with one of the two configurations below.
NOTICE: Git is preinstalled on CSIL machines.
You can add this repository as a submodule to the git repository for your project by doing this:
-
cd your_cs160_project -
git submodule add "https://github.com/senbrow/CS160-Testcases.git" testcases
When you need to update the test cases, cd to the testcases folder and do git pull.
You really should be using version control for your projects. The great thing
about git is that you can start version control with a plain git init.
Anyway, maybe next quarter. For now though:
-
cd your_cs160_project -
git clone "https://github.com/senbrow/CS160-Testcases.git" testcases
When you need to update the test cases, cd to the testcases folder and do git pull.
Fork senbrow's CS160-Testcases git repository in Github. cd to the
testcases folder, and do:
-
git remote add <insert your user name here> git://github.com/<insert your user name here>/test.git -
git add <the file you want to add> -
git push <your user name here> master
Then go on Github and do a pull request (the button is on your fork of the repository asking Sean to pull from your repository's master branch). Github should show a yellow box where you can do a pull request.
If you can't figure this out just email us the test case or make an issue with the code in it.