Skip to content

Latest commit

 

History

History
43 lines (25 loc) · 973 Bytes

File metadata and controls

43 lines (25 loc) · 973 Bytes

Execute Java Test

This is a mini template for NUS students who needs to run their test against some input files and check the difference against some output file

Installing

Simply clone the repository and start working on it :)

git clone https://github.com/jeremiah-ang/execute-java-test

Folders and Naming

Project

The java file should have the first character Capitalised and in the same directory as test-task.sh

Addition.java

Input

  • Input files are stored in input/ folder
  • Files in it should have the same name as the project
  • All lower case
  • With extension .in

input/addition1.in

Output

  • Expected output files are stored in output/ folder
  • Files in it should have the same name as the project
  • All lower case
  • With extension .out

output/addition1.out

Using it

Simply execute

sh test-task.sh <Test Number(Optional)>

i.e. sh test-task.sh Addition 1