File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # User Guide
2+
3+ ## Features
4+
5+ ### Feature 1
6+ Description of feature.
7+
8+ ## Usage
9+
10+ ### ` Keyword ` - Describe action
11+
12+ Describe action and its outcome.
13+
14+ Example of usage:
15+
16+ ` keyword (optional arguments) `
17+
18+ Expected outcome:
19+
20+ ` outcome `
Original file line number Diff line number Diff line change 1+ Hello from
2+ ____ _
3+ | _ \ _ _| | _____
4+ | | | | | | | |/ / _ \
5+ | |_| | |_| | < __/
6+ |____/ \__,_|_|\_\___|
7+
Original file line number Diff line number Diff line change 1+ @ ECHO OFF
2+
3+ REM create bin directory if it doesn't exist
4+ if not exist ..\bin mkdir ..\bin
5+
6+ REM delete output from previous run
7+ del ACTUAL.TXT
8+
9+ REM compile the code into the bin folder
10+ javac -cp ..\src -Xlint:none -d ..\bin ..\src\main\java\Duke.java
11+ IF ERRORLEVEL 1 (
12+ echo ********** BUILD FAILURE **********
13+ exit /b 1
14+ )
15+ REM no error here, errorlevel == 0
16+
17+ REM run the program, feed commands from input.txt file and redirect the output to the ACTUAL.TXT
18+ java -classpath ..\bin Duke < input.txt > ACTUAL.TXT
19+
20+ REM compare the output to the expected output
21+ FC ACTUAL.TXT EXPECTED.TXT
You can’t perform that action at this time.
0 commit comments