Skip to content

Adding doctests for sum_of_subset.py #1333

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 11, 2019
Merged

Conversation

jpg-130
Copy link
Contributor

@jpg-130 jpg-130 commented Oct 9, 2019

No description provided.

@@ -22,14 +27,9 @@ def isSumSubset(arr, arrLen, requiredSum):
# uncomment to print the subset
# for i in range(arrLen+1):
# print(subset[i])
print(subset[arrLen][requiredSum])
Copy link
Member

@cozek cozek Oct 9, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary . Try this.
take test.py as

def returns_true():
    """
    >>> returns_true()
    True
    """
    return True

then
python3 -m doctest test.py -v

However, thank you adding the doctests.

@poyea poyea added the awaiting merge This PR is approved and ready to be merged label Oct 9, 2019
@poyea poyea merged commit e678879 into TheAlgorithms:master Oct 11, 2019
stokhos pushed a commit to stokhos/Python that referenced this pull request Jan 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting merge This PR is approved and ready to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants