0.0.3 • Published 3 years ago

@code-runner/runner-python-3-7 v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@code-runner/runner-python-3-7

Installation

yarn add @code-runner/runner-python-3-7
# or
npm i @code-runner/runner-python-3-7

Example

{
    "id": "python-3-7",
    "main": "hallo",
    "sources": [
        {
            "name": "Hallo",
            "content": "def f(n):\n\n\treturn n\nprint(f(1))",
            "path": ["hallo.py"]
        }
    ],
    "tests": [
        {
            "name": "Test 1",
            "path": ["test_hallo.py"],
            "content": "import hallo\n\ndef test_f():\n\n\tassert hallo.f(2) == 2"
        },
         {
            "name": "Test 2",
            "path": ["test_hallo2.py"],
            "content": "import hallo\n\ndef test_f():\n\n\tassert hallo.f(2) == 1"
        }
    ]
}