Skip to content

Aurashk/test_vscode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

test_vscode

This is a repository for IB9JHO to test you can compile and run C/C++ in the correct enviroment with vscode.

Setting up the Environment

The easiest way to get straight to programming is to create/open a codespace in the cloud and selecting the GCC compiler when prompted. You can do this with:

  • Github directly codespace

  • Vscode installed on your device codespace_in_vscode

A local enviroment on your device is faster, not limited on computing resources, and available offline. If you want to set this up follow the instructions here

Test that your environment is working by compiling and running the C code in this repository found in src/main.c.

compile_and_run Click the play button highlighted in yellow to compile and run. You should see the program output from the print statement in our code as highlighted in orange.

Testing

Assignments are marked automatically using tests. You can run the tests in vscode by going to the tests tab and clicking the play button.

running_tests

The tests are failing because the output of our program is not what we expect it to be. The correct output can be found in tests/IO/correct_output.txt. Correct the code and rerun the tests to verify that the output of the program is correct.

Submission

Once you have confirmed all the tests are passing. You can submit an assignment by pushing (updating) the repository with all your changes. submit_assignment

Once you have submitted your assignment and all the tests are passing you should notice the red cross will change to a green tick in github.

  • Tests are not passing

tests_not_passing_repo

  • Tests are passing

tests_passing_in_repo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published