This is a simple package used to run Edabit tests.
Project description
Edatest
This is a simple package used to run Edabit tests.
How to use
Import the package to your document
from edatest import Edatest
Test = Edatest()
Write your code
def has_friday_13(month, year):
return "answer here"
Insert tests available in the tests tab in the Edabit challenge
Test.assert_equals(has_friday_13(3, 2020), True)
Test.assert_equals(has_friday_13(10, 2017), True)
Test.assert_equals(has_friday_13(1, 1985), False)
Test.assert_equals(has_friday_13(5, 1619), False)
Test.assert_equals(has_friday_13(6, 1614), True)
Run your python script to test your code
$ python edabit.py
❌ FAILED: "answer here" should equal "True"
❌ FAILED: "answer here" should equal "True"
❌ FAILED: "answer here" should equal "False"
❌ FAILED: "answer here" should equal "False"
❌ FAILED: "answer here" should equal "True"
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
edatest-0.0.4.tar.gz
(1.9 kB
view hashes)