Skip to content

jeremiah-ang/execute-java-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Executes javac, java and then diff.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages