Skip to content

Simple Cipher #300

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 6 commits into from
May 5, 2025
Merged

Simple Cipher #300

merged 6 commits into from
May 5, 2025

Conversation

rabestro
Copy link
Member

@rabestro rabestro commented May 4, 2025

This PR ports the "Simple Cipher" exercise to the AWK track.

Closes #298

Jegors Cemisovs added 6 commits May 4, 2025 18:03
Added detailed exercise instructions for Simple Cipher in `instructions.md`, covering Caesar cipher, substitution cipher, and enhancements. Included `bats-extra.bash` for testing support, leveraging `bats-core` helpers like assertions and error handling.
This commit introduces the metadata configuration file for the Simple Cipher exercise. It defines authors, solution, test, and example files alongside a brief description and source attribution.
Introduce comprehensive BATS tests to validate encoding, decoding, and edge cases for the simple-cipher functionality. Tests include random key generation, wrapping, case handling, and error scenarios to ensure robustness.
This commit provides an AWK-based implementation for the 'simple-cipher' exercise, including encoding and decoding functionality. It handles key validation, random key generation, and supports letter-based cipher operations. The solution demonstrates AWK's capabilities for text manipulation and user-defined functions.
This commit introduces the basic structure for the simple-cipher exercise in AWK. The current implementation includes a placeholder that exits with an error, serving as a starting point for future development. Variables `type` and `key` are expected to be initialized via the command line.
This commit introduces the "Simple Cipher" practice exercise, along with its documentation, metadata, and tests. Includes updates to relevant configurations and consistent formatting adjustments in filenames and documentation.
@rabestro rabestro requested a review from IsaacG May 4, 2025 15:58
@rabestro rabestro marked this pull request as ready for review May 4, 2025 15:58
@rabestro rabestro requested a review from glennj May 4, 2025 15:58
@rabestro rabestro self-assigned this May 4, 2025
@rabestro rabestro changed the title Issue/298 Simple Cipher May 4, 2025
@rabestro rabestro added the x:module/practice-exercise Work on Practice Exercises label May 5, 2025
@rabestro rabestro merged commit e75f839 into main May 5, 2025
2 checks passed
@rabestro rabestro deleted the issue/298 branch May 5, 2025 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
x:module/practice-exercise Work on Practice Exercises
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Simple Cipher
2 participants