Skip to content

[Hacktoberfest] Python | Pragmatic Pipes #340

Description

@ericwburden

Participation

All Hacktoberfest solutions should be provably correct. That is, solution submissions should either include the unit tests from the original challenge (implemented in your language of choice) or at least print out the expected answers when run by the maintainers. Solutions that do not meet these criteria may be rejected, or flagged as 'invalid' or 'spam' in egregious cases. This can result in your PR not counting towards your Hacktoberfest participation or becoming ineligible to participate in Hacktoberfest. Violations of our Code of Conduct will be reported, and will also render you ineligible to participate in Hacktoberfest. Please be respectful of the maintainers' and other participants' time by doing your best to submit real solutions to the puzzles. Thanks, and welcome to our learning community!

Challenge

Pragmatic Pipes

Language

Python

Approach

The solution to this one needs to include the tests, run when the script is invoked. For example:

import unittest

class TestStringMethods(unittest.TestCase):

    def test_one(self):
        input = pipe_graph(("S", []))
        result = input.minimum_spanning_tree("S")
        self.assertEqual(result, 0)


if __name__ == '__main__':
    unittest.main()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions