exercism / exercism/cpp

Atbash Cipher exercise needs tests for empty input

Open
#353 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
290
Forks
244
PR merge metrics
No merged PRs in 30d

Description

The Atbash Cipher needs additional tests for empty strings...

```
TEST_CASE("encode_empty_string")
{
REQUIRE("" == atbash::encode(""));
}
TEST_CASE("decode_empty_string")
{
REQUIRE("" == atbash::decode(""));
}

```
In particular student code can fail encode empty string with improper handling of trailing white space.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.