Coder Social home page Coder Social logo

mtmex2tester's Introduction

How to use

This tester aims to cover as many edge cases as possible whilst giving convinient testing results.

So what's it testing

  • All test files located in the in folder (assuming there's a matching output file in the out folder)
  • Testing partA
  • Testing partB
  • Automagically create SWIG compiled files from .i .h and .o files
  • Automagically generates random tests
  • Automagically fetches tests with edge cases from the internet

Prerequisites

  1. Python3.6+ (sudo apt install python3 python3-pip on Ubuntu)
  2. termcolor library (you can install it by typing pip install termcolor)
  3. Have a few test files

Folder structure

You must have the following folder structure to be able to run the tester

project:

  • ex2_tester.py
  • hw2.py
  • Olympics.py
  • Olympics.so
  • tests:
    • in:
      • test1.txt
      • test2.txt
      • ...
    • out:
      • out1.txt
      • out2.txt
      • ...

How to run

On your computer you will likely be able to run it with

python3 ex2_tester.py

On the CSL3 server, the default Python3 version is 3.4 so you will need to

python3.6 ex2_tester.py

mtmex2tester's People

Contributors

danibondar avatar gur111 avatar

Stargazers

 avatar  avatar

Watchers

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