The Wayback Machine - https://web.archive.org/web/20200831054201/https://github.com/TheAlgorithms/Python/pull/2123
Skip to content
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

Fix long line, tests #2123

Merged
merged 8 commits into from Jun 16, 2020
Merged

Fix long line, tests #2123

merged 8 commits into from Jun 16, 2020

Conversation

@cclauss
Copy link
Member

cclauss commented Jun 16, 2020

No description provided.

@cclauss cclauss requested a review from poyea Jun 16, 2020
github-actions github-actions
@poyea
poyea approved these changes Jun 16, 2020
@TravisBuddy
Copy link

TravisBuddy commented Jun 16, 2020

Travis tests have failed

Hey @cclauss,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

TravisBuddy Request Identifier: 6c665330-afb8-11ea-ae15-c70b0cf57a1c
@poyea
Copy link
Member

poyea commented Jun 16, 2020

=========================== short test summary info ============================
FAILED ciphers/affine_cipher.py::affine_cipher.main
FAILED digital_image_processing/resize/resize.py::digital_image_processing.resize.resize.NearestNeighbour.get_y
FAILED divide_and_conquer/convex_hull.py::convex_hull.convex_hull_recursive
FAILED searches/tabu_search.py::tabu_search.find_neighborhood
@poyea
Copy link
Member

poyea commented Jun 16, 2020

For L142 in searches/tabu_search.py:

>>> find_neighborhood(['a', 'c', 'b', 'd', 'e', 'a'], {'a': [['b', '20'], ['c', '18'], ['d', '22'], ['e', '26']], 'c': [['a', '18'], ['b', '10'], ['d', '23'], ['e', '24']], 'b': [['a', '20'], ['c', '10'], ['d', '11'], ['e', '12']], 'e': [['a', '26'], ['b', '12'], ['c', '24'], ['d', '40']], 'd': [['a', '22'], ['b', '11'], ['c', '23'], ['e', '40']]})
[['a', 'e', 'b', 'd', 'c', 'a', 90], ['a', 'c', 'd', 'b', 'e', 'a', 90], ['a', 'd', 'b', 'c', 'e', 'a', 93], ['a', 'c', 'b', 'e', 'd', 'a', 102], ['a', 'c', 'e', 'd', 'b', 'a', 113], ['a', 'b', 'c', 'd', 'e', 'a', 119]]
@TravisBuddy
Copy link

TravisBuddy commented Jun 16, 2020

Hey @cclauss,
Something went wrong with the build.

TravisCI finished with status errored, which means the build failed because of something unrelated to the tests, such as a problem with a dependency or the build process itself.

View build log

TravisBuddy Request Identifier: 1d39cec0-afc4-11ea-ae15-c70b0cf57a1c
...
@TravisBuddy
Copy link

TravisBuddy commented Jun 16, 2020

Hey @cclauss,
Something went wrong with the build.

TravisCI finished with status errored, which means the build failed because of something unrelated to the tests, such as a problem with a dependency or the build process itself.

View build log

TravisBuddy Request Identifier: e271a190-afc4-11ea-ae15-c70b0cf57a1c
cclauss and others added 2 commits Jun 16, 2020
...
@TravisBuddy
Copy link

TravisBuddy commented Jun 16, 2020

Hey @cclauss,
Something went wrong with the build.

TravisCI finished with status errored, which means the build failed because of something unrelated to the tests, such as a problem with a dependency or the build process itself.

View build log

TravisBuddy Request Identifier: 6fad7c00-afc5-11ea-ae15-c70b0cf57a1c
@TravisBuddy
Copy link

TravisBuddy commented Jun 16, 2020

Hey @cclauss,
Something went wrong with the build.

TravisCI finished with status errored, which means the build failed because of something unrelated to the tests, such as a problem with a dependency or the build process itself.

View build log

TravisBuddy Request Identifier: 90aa7610-afc5-11ea-ae15-c70b0cf57a1c
@TravisBuddy
Copy link

TravisBuddy commented Jun 16, 2020

Travis tests have failed

Hey @cclauss,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

TravisBuddy Request Identifier: fff149d0-afc6-11ea-ae15-c70b0cf57a1c
    >>> find_neighborhood(['a','c','b','d','e','a'])  # doctest: +NORMALIZE_WHITESPACE
    [['a','e','b','d','c','a',90], [['a','c','d','b','e','a',90],
     ['a','d','b','c','e','a',93], ['a','c','b','e','d','a',102],
     ['a','c','e','d','b','a',113], ['a','b','c','d','e','a',93]]
@poyea poyea changed the title Fix long line Fix long line, tests Jun 16, 2020
@cclauss cclauss merged commit b9e5259 into master Jun 16, 2020
3 checks passed
3 checks passed
build
Details
build
Details
Travis CI - Pull Request Build Passed
Details
@cclauss cclauss deleted the Fix-long-line branch Jun 16, 2020
peRFectBeliever added a commit to peRFectBeliever/Python that referenced this pull request Jun 30, 2020
* Fix long line

* updating DIRECTORY.md

* Add doctest

* ...

* ...

* Update tabu_search.py

* space

* Fix doctest

    >>> find_neighborhood(['a','c','b','d','e','a'])  # doctest: +NORMALIZE_WHITESPACE
    [['a','e','b','d','c','a',90], [['a','c','d','b','e','a',90],
     ['a','d','b','c','e','a',93], ['a','c','b','e','d','a',102],
     ['a','c','e','d','b','a',113], ['a','b','c','d','e','a',93]]

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: John Law <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.