Skip to content

classroom-resources/autograding-example-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Autograding Example: C++

This example project is written in C++, and tested with make and Catch2.

The assignment

The tests are failing right now because of a bad base case in the factorial function. Correcting the base case will fix the tests.

Setup command

N/A

Run command

make test

Notes

  • g++ can be used to compile and link C++ applications for use with existing test harnesses or other C++ testing frameworks.
  • If students push a.out files, the autograder may attempt to run that version instead of a newly compiled binary. If this happens, and your student isn't on Linux, the script will crash. To fix this issue, it's recommended to clean before building.

About

GitHub Classroom autograding example repo with C++ and Catch.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages