Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 2.65 KB

lab_report_4.md

File metadata and controls

35 lines (25 loc) · 2.65 KB

Lab Report 4

1. Delete any existing forks of the repository you have on your account

image

2. Fork the repository

image

3. Start the timer

image

4. Log into ieng6

image
Keys pressed: <up><enter>
The ssh [email protected] command was 1 up in the history, so I simply accessed it using up arrow.

5-7 Clone your fork of the repository from your Github account, Run the tests, demonstrating that they fail and Edit the code

image
image

Keys pressed: <up><up><up><up><enter><ctrl+shft+->43<enter>(<right>x11)<del>2<ctrl+x>y<enter>
The git clone [email protected]:maxwn04/lab7.git; cd lab7; cd lab7; javac -cp .:lib/hamcrest-core-1.3.jar:lib/junit-4.13.2.jar *.java; java -cp .:lib/hamcrest-core-1.3.jar:lib/junit-4.13.2.jar org.junit.runner.JUnitCore TestListExamples; nano ListExamples.java command was 4 up in the history, so I accessed it using the up arrow. This command contains all the commands needed for steps 5-7, first cloning the github, then switching into the folder and running the junit compile and run commands. Then using nano to edit the file. I used the ctrl+shft+- shortcut to skip to line 43, then used the right arrow to get to the error, and fixed it by deleting the 2 and replacing it with a 1.

8-9 Run the tests, demonstrating that they now succeed and Commit and push the resulting change to your Github account

image

Keys pressed: <up><up><up><up><enter>
The javac -cp .:lib/hamcrest-core-1.3.jar:lib/junit-4.13.2.jar *.java; java -cp .:lib/hamcrest-core-1.3.jar:lib/junit-4.13.2.jar org.junit.runner.JUnitCore TestListExamples; git add ListExamples.java; git commit -m "Updated"; git push origin main command was 4 up in the history, so I accessed it using the up arrow. This command contains all the commands needed for steps 8-9, first running the Junit compile and run commands, then running all the required commands to push the changes to github.