Code Monkey home page Code Monkey logo

cosc480-homework1's Introduction

COSC 480 Homework 1

Skeleton code and sanity specs for COSC480 homework 1. Refer to Moodle for the homework description.

Skeleton Code

The skeleton code for parts 1-7 are located in the folder code/.

Running Sanity Specs (Tests)

To run the sanity specs/tests, please make sure rspec is installed (it is already installed in the virtual machine, but if you're using an unsanctioned environment, you can run gem install rspec).

The sanity specs only check that the various methods that you need to implement conform to the required interface (i.e., they return the expected objects, etc.) The specs do not do any testing beyond that.

The script ./run_specs.sh can be used to run all specs against all your code.

If you want to run one spec at a time:

  • If you have your solution saved to a file located at path/to/solution.rb, and

  • the corresponding spec is located at other_path/to/sanity_spec.rb,

  • then you can run the sanity spec with:

    rspec --color path/to/solution.rb other_path/to/sanity_spec.rb

    The output should look something like:

    ...

    Finished in 0.00206 seconds 3 examples, 0 failures

cosc480-homework1's People

Contributors

jsommers avatar

Watchers

 avatar

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.