Skip to main content

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)

Uploaded Source

Built Distribution

edatest-0.0.4-py3-none-any.whl (3.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page