Skip to content

Bugfix in reverselib.py, add testing#7

Open
Altornberg wants to merge 2 commits intojth-computing:mainfrom
Altornberg:main
Open

Bugfix in reverselib.py, add testing#7
Altornberg wants to merge 2 commits intojth-computing:mainfrom
Altornberg:main

Conversation

@Altornberg
Copy link
Copy Markdown

@Altornberg Altornberg commented Apr 13, 2026

Fixed bug where trailing ones in output were not printed.
Added test case for "123"

Before

$ python src/reverser.py
Type a number: 123
Its reverse is: 32

After

$ python src/reverser.py
Type a number: 123
Its reverse is: 321

@Altornberg
Copy link
Copy Markdown
Author

Also added doctests in 8cd3f89

@Altornberg Altornberg changed the title Bugfix in reverselib.py Bugfix in reverselib.py, add testing Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant