Code Monkey home page Code Monkey logo

even-numbers-from-random's Introduction

even-numbers-from-random

a computer program that returns even numbers from random and unit tests

Task:

  1. Prepare a class that will contain a method returning even numbers from the randomly selected numbers.

  2. Prepare a test class to test the above method. The test class is designed to check the following situations:

  • the returned file will be empty
  • only even numbers will be returned
  • only odd numbers will be returned
  • both even and odd numbers are returned all assertion check if method return only even numbers list

All test were run with range(0-1000) and returned 10 element list (to easy debug etc.)

To run:

the use of a virtual environment is recommended (virtualvenv etc.)
  1. install latest pip package
  2. invoke in cmd: pip install -r requierements.txt
  3. run pytest by python -m pytest inside project directory
  4. If You want You have html report, you should invoke pytest --html=report.html --self-contained-html

even-numbers-from-random's People

Contributors

pawelkuznik 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.