Coder Social home page Coder Social logo

testscase's Introduction

Tests Case

A script to test cases for programming marathon algorithms like OBI, OCI, URI Online Judge, ICPC, among others.

Usage Guide

Dependencies

Python 3.7

Install

Clone or download the repository to your computer.

git clone https://github.com/rodriguesfas/testscase.git

Folder Templates

  • Add in the template folder your subfolder, template of the question you want to test the test cases.

  • The folder name must be the same as your python file. Therefore, avoid using special characters.

Run

python run.py my_file.py

Test

# RUN
python run.py postes.py

# OUTPUT
postes /
│
│
├── folder 1
    ├── 4 / right answer
        ├── out: 0 3
        └── answer: 0 3

    ├── 2 / right answer
        ├── out: 1 3
        └── answer: 1 3

    ├── 5 / right answer
        ├── out: 0 8
        └── answer: 0 8

    ├── 3 / right answer
        ├── out: 1 2
        └── answer: 1 2

    ├── 1 / right answer
        ├── out: 4 0
        └── answer: 4 0

    └── statistics folder
        ├── correct: 5
        └── wrong: 0
│
├── folder 3
    ├── 4 / right answer
        ├── out: 14 65
        └── answer: 14 65

    ├── 2 / right answer
        ├── out: 0 100
        └── answer: 0 100

    ├── 5 / right answer
        ├── out: 49 300
        └── answer: 49 300

    ├── 3 / right answer
        ├── out: 44 30
        └── answer: 44 30

    ├── 6 / right answer
        ├── out: 147 162
        └── answer: 147 162

    ├── 1 / right answer
        ├── out: 100 0
        └── answer: 100 0

    ├── 7 / right answer
        ├── out: 215 101
        └── answer: 215 101

    └── statistics folder
        ├── correct: 7
        └── wrong: 0
│
├── folder 4
    ├── 4 / right answer
        ├── out: 294 706
        └── answer: 294 706

    ├── 2 / right answer
        ├── out: 195 198
        └── answer: 195 198

    ├── 5 / right answer
        ├── out: 175 732
        └── answer: 175 732

    ├── 3 / right answer
        ├── out: 310 335
        └── answer: 310 335

    ├── 6 / right answer
        ├── out: 85 508
        └── answer: 85 508

    ├── 8 / right answer
        ├── out: 799 53
        └── answer: 799 53

    ├── 1 / right answer
        ├── out: 1000 0
        └── answer: 1000 0

    ├── 7 / right answer
        ├── out: 0 1000
        └── answer: 0 1000

    └── statistics folder
        ├── correct: 8
        └── wrong: 0
│
├── folder 2
    ├── 4 / right answer
        ├── out: 8 19
        └── answer: 8 19

    ├── 2 / right answer
        ├── out: 9 6
        └── answer: 9 6

    ├── 5 / right answer
        ├── out: 0 0
        └── answer: 0 0

    ├── 3 / right answer
        ├── out: 17 3
        └── answer: 17 3

    ├── 1 / right answer
        ├── out: 10 0
        └── answer: 10 0

    └── statistics folder
        ├── correct: 5
        └── wrong: 0

----------------------------------------------
    └── Statistics Total
        ├── correct: 25
        └── wrong: 0

testscase's People

Contributors

rodriguesfas avatar

Watchers

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