edatest-0.0.4
توضیحات
This is a simple package used to run Edabit tests.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | edatest-0.0.4 |
| نام | edatest |
| نسخه کتابخانه | 0.0.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Nicholas Walker |
| ایمیل نویسنده | nicholas.walk@gmail.com |
| آدرس صفحه اصلی | https://gitlab.com/nicholas.walk/edatest |
| آدرس اینترنتی | https://pypi.org/project/edatest/ |
| مجوز | - |
# Edatest
This is a simple package used to run Edabit tests.
# How to use
**Import the package to your document**
```python
from edatest import Edatest
Test = Edatest()
```
**Write your code**
```python
def has_friday_13(month, year):
return "answer here"
```
**Insert tests available in the tests tab in the Edabit challenge**
```python
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**
```bash
$ 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"
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl edatest-0.0.4:
pip install edatest-0.0.4.whl
نصب پکیج tar.gz edatest-0.0.4:
pip install edatest-0.0.4.tar.gz