abh - HTMLify profile

abh's Profile Picture

abh

501 Files

101960 Views

Latest files of /abh/def/TESTS

__init__.py abh/def/TESTS/__init__.py
256 Views
0 Comments
from .TESTS import *

func.py abh/def/TESTS/func.py
281 Views
0 Comments
TESTCASES = [
{ # test case structure
"positional": ("arguments", "in", "tuples",), # Positional arguments as Tuple
"keyword": {"keyword":"arguments"}, # Keyword arguments as Dictoery
"return": "retuen value", # Expected Return Value
"msg": "sample test case", # Message for Testcase (optinal)
},
{ #fus follow the same structure for every test case
are_anagrams.py abh/def/TESTS/are_anagrams.py
290 Views
0 Comments
TESTCCASES = [
{
"positional": ("string", "string",),
"keyword": {},
"return": True,
"msg": "",
},
{
TESTS.py abh/def/TESTS/TESTS.py
307 Views
0 Comments
class Test:
def __init__(self, function):
self.passed = 0
self.failed = 0
self.function = function

def sfill(self, obj, n=0):
if n and n > len(str(obj)):
is_even.py abh/def/TESTS/is_even.py
257 Views
0 Comments
TESTCASES = [
{
"positional": (2,),
"keyword": {},
"return": True,
"msg": "",
},
{
is_isogram.py abh/def/TESTS/is_isogram.py
287 Views
0 Comments
TESTCASES = [
{
"positional": ("Hello",),
"keyword": {},
"return": False,
"msg": ""
},
{
is_consonant.py abh/def/TESTS/is_consonant.py
321 Views
0 Comments
TESTCASES = [
{
"positional": ("H",),
"keyword": {},
"return": True,
"msg": ""
},
{
is_perfect_square.py abh/def/TESTS/is_perfect_square.py
659 Views
0 Comments
TESTCASES = [
{
"positional": (2,),
"keyword": {},
"return": False,
"msg": "",
},
{
is_divisible_by.py abh/def/TESTS/is_divisible_by.py
260 Views
0 Comments
TESTCCASES = [
{
"positional": (25, 5),
"keyword": {},
"return": True,
"msg": "",
},
{