Git Product home page Git Product logo

os_hw1_tests's Introduction

About

The os.c file in this repo is a copy of the original file provided with the first homework assignment edited to include two test suites. The tests themselves were almost entirely sourced from the shared TAU Computer Science Drive - credit goes out to the people who originally wrote them. I modified them to also include the basic set of tests provided in the original file and to make it possible to run them without using <math.h>.

How to use these tests

  1. Replace the original os.c file in your project directory with the file in this repo.
  2. Compile your code along with the test file using gcc -O3 -Wall -std=c11 os.c pt.c
  3. Run the resulting executable. The test results will show up as output.
  4. After running the tests and before submitting your solution, it is recommended to ensure that your code runs with the original os.c on the university's Nova server.

Please note that the first test suite is randomized and may therefore produce inconsistent results when run with incorrect code. Correct code should always pass both suites.

Contributing

If you come across what you belive to be unexpected test behavior or edge cases that are not covered by the tests in their current form, please make sure there are no problems with your code. If not, you are welcome to submit a PR with a fix.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.