Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ==================================================
- Testing Task 4 (functions)
- --------------------------------------------------
- Test c0vm tests/task4/static2.bc0, expect successful execution
- *** TEST FAILED! Expected successful execution.
- *** Actual outcome: An assertion failed unexpectedly
- *** Hint: Problem with invokestatic.
- --------------------------------------------------
- Test c0vm tests/task4/native1.bc0, expect successful execution - good, this worked.
- --------------------------------------------------
- Test c0vm tests/task4/static1.bc0, expect successful execution - good, this worked.
- Test c0vmd tests/task4/static1.bc0, expect successful execution - good, this worked.
- Test c0vm tests/task4/static4.bc0, expect successful execution
- *** TEST FAILED! Expected successful execution.
- *** Actual outcome: c0_memory_error() was called
- *** Hint: Problem with different numbers of arguments/locals.
- --------------------------------------------------
- Test c0vm tests/task4/recursion1.bc0, expect successful execution
- *** TEST FAILED! Expected successful execution.
- *** Actual outcome: An assertion failed unexpectedly
- *** Hint: Problem with recursive functions.
- --------------------------------------------------
- Test c0vmd tests/task4/recursion4.bc0, expect c0_assertion_failure() - good, this did what we expected.
- Test c0vmd tests/task4/recursion6.bc0, expect c0_user_error() on string of length 6 - good, this did what we expected.
- --------------------------------------------------
- Test c0vm tests/task4/recursion5.bc0, expect successful execution
- *** TEST FAILED! Expected successful execution.
- *** Actual outcome: An assertion failed unexpectedly
- *** Hint: Recursively computes 7^1,000,000. Will likely fail if recursion is not efficiently implemented with a callstack data structure.
- --------------------------------------------------
- Test c0vm tests/task4/native1.bc0, expect successful execution - good, this worked.
- Test c0vmd tests/task4/native1.bc0, expect successful execution - good, this worked.
- Test c0vm tests/task4/native2.bc0, expect successful execution - good, this worked.
- Test c0vmd tests/task4/native2.bc0, expect successful execution - good, this worked.
- Test c0vm tests/task4/native3.bc0, expect successful execution - good, this worked.
- Test c0vmd tests/task4/native3.bc0, expect successful execution - good, this worked.
- Test c0vm tests/task4/native4.bc0, expect successful execution
- *** TEST FAILED! Expected successful execution.
- *** Actual outcome: An assertion failed unexpectedly
- *** Hint: Problem with invokenative.
- --------------------------------------------------
- Test c0vm tests/task4/returnstring.bc0, expect successful execution
- *** TEST FAILED! Expected successful execution.
- *** Actual outcome: c0_memory_error() was called
- *** Hint: Functions that return strings
- --------------------------------------------------
- Test c0vm tests/task4/string1.bc0, expect successful execution
- *** TEST FAILED! Expected successful execution.
- *** Actual outcome: c0_memory_error() was called
- *** Hint: invokenative and the string library.
- *** NOTE: this could also be a problem with strings, aldc, or invokestatic/return
- --------------------------------------------------
- Test c0vm tests/task4/string5.bc0, expect assertion failure
- *** TEST FAILED! Expected a contract to fail.
- *** Actual outcome: c0_memory_error() was called
- *** Hint: invokenative and the string library (negative numbers)
- --------------------------------------------------
- Task 4 score: 1.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement