-
-
Notifications
You must be signed in to change notification settings - Fork 566
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
Added Baklava in C++ #1252
Added Baklava in C++ #1252
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! I took a peek at the test suite, and it looks like this solution fails with the following error:
__________________________ test_baklava[baklava.cpp] ___________________________
baklava = Source(name: baklava, path: /home/travis/build/TheRenegadeCoder/sample-programs/archive/c/c-plus-plus
def test_baklava(baklava):
expected = """ *
***
*****
*******
*********
***********
*************
***************
*****************
*******************
*********************
*******************
*****************
***************
*************
***********
*********
*******
*****
***
*
"""
expected_lines = expected.split(os.linesep)
actual = baklava.run()
actual_lines = actual.split(os.linesep)
for i in range(len(expected_lines)):
> assert actual_lines[i] == expected_lines[i], f'line {i + 1} did not match'
E AssertionError: line 1 did not match
E assert 'sh: 1: pause: not found' == ' *'
E - sh: 1: pause: not found
E + *
test/projects/test_baklava.py:45: AssertionError
================== 1 failed, 608 passed in 237.33s (0:03:57) ===================
The command "python -um samplerunner test" exited with 1.
Any chance you could look into this?
I just make it static to pass the test but I could not run the test. requests.exceptions.ConnectionError: ('Connection aborted.', PermissionError(13, 'Permission denied')) it seems it happens during connecting to docker |
That's a good question. Best for @auroq. That said, you can always check the results in Travis CI: https://travis-ci.com/TheRenegadeCoder/sample-programs/jobs/244981574 It looks like there's one too many spaces in the first row. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Works great.
Complete the Applicable Sections Below
Find which section best describes your pull request and make sure you fill it out. To start, let us know which issue you've fixed.
Code Snippets
Added/Updated <Sample Program> in <Language>
formatDocumentation
Added/Updated <Sample Program> in <Language> Article
formatTesting
Added/Updated <Language>/<Project> Testing
formatNotes
Feel free to describe what you added or updated.