GithubHelp home page GithubHelp logo

mafutomo / intro_to_tdd_assessment Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gschool/intro_to_tdd_assessment

0.0 1.0 0.0 161 KB

This is an in class assessment given to measure students progress in git workflow and introduction to tdd

intro_to_tdd_assessment's Introduction

Intro to TDD assessment

You assignment is to fork this repository, clone your fork locally and complete a test first implementation of the following problem using RSpec as the testing library. Your GitHub repository will be the focus of our grading.

Create a prime number detector

Your job is to create a class that has a single method called prime_number?, which takes one argument.

Instances of the class does not need to be initialized with anything special.

When you call prime_number? and pass it a prime number (like 3, 5 or 7), it returns true.

When you call prime_number? and pass it a non-prime number (like 4, 6 or 10), it returns false.

Your prime_number? method can use the Prime.prime? method from the Ruby standard library.

Prime Numbers

A prime number is a natural number greater than 1 that has no positive divisors other than 1 and itself.

3,5,7,11,13,17,19 are all examples of prime numbers.

Some things we will look for

Each of the items below will be rated on a scale of 0, 1 or 2 (0 being did not do, 2 being did perfectly):

  • A properly specified version of RSpec in your Gemfile
  • Appropriately sized commits
  • Descriptive commit messages
  • Tests pass with each commit
  • Code works
  • Completed in time
  • Ruby Style (proper capitalization / snake_case)

Things we will not look for

  • A perfect prime number algorithm

It's sufficient to have one spec for a non-prime number and one spec for a prime number.

Feedback we will collect

  • Your self assessment of your performance submitted to yourself via the feedback tool in students.gschool.it
  • Feedback from the instructors in the form of GitHub comments and via the feedback tool.

intro_to_tdd_assessment's People

Contributors

mikegehard avatar

Watchers

James Cloos 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.