Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • P project01
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Adam Blank
  • project01
  • Merge requests
  • !8

Merged
Created Sep 28, 2019 by Caleb C. Sander@csanderContributor

Various requested changes

  • Overview 0
  • Commits 6
  • Changes 6
  • Add success/failure message to tests. These are a little hard to read since the commands make is running are intermingled with the output:
javac tests/Constants.java
java -cp tests Constants > tests/Constants-expected.txt
./jvm tests/Constants.class > tests/Constants-actual.txt
diff -u tests/Constants-expected.txt tests/Constants-actual.txt | tee tests/Constants-result.txt; \
name='test Constants'; \
if [ -s tests/Constants-result.txt ]; then echo FAILED $name. Aborting.; false; \
else echo PASSED $name.; fi
PASSED test Constants.
java -cp tests Part3 > tests/Part3-expected.txt
./jvm tests/Part3.class > tests/Part3-actual.txt
diff -u tests/Part3-expected.txt tests/Part3-actual.txt | tee tests/Part3-result.txt; \
name='test Part3'; \
if [ -s tests/Part3-result.txt ]; then echo FAILED $name. Aborting.; false; \
else echo PASSED $name.; fi
--- tests/Part3-expected.txt    2019-09-28 11:16:28.111952000 -0700
+++ tests/Part3-actual.txt      2019-09-28 11:16:28.134930000 -0700
@@ -1 +1 @@
-10014
+10021
FAILED test Part3. Aborting.
make: *** [Makefile:37: tests/Part3-result.txt] Error 1
  • Rename Code_attribute to code_t and add comment about violating naming convention
  • Add comment about how args would be passed to main()
  • Remove bitwise operator mnemonics
  • Henry's change renaming "lab" to "project"
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: master