Skip to content

13_palindromes: add a test case for an even-length palindrome #659

Description

@Sundwalltanner

Prerequisites

  • I have thoroughly read and understand The Odin Project Contributing Guide
  • I have searched the existing issues to ensure this improvement hasn't been suggested before (please have a look through our open issues list to make sure)
  • The title of this issue follows the <Location of the improvement>: <Brief description of the improvement> format, e.g. Exercises: Add exercise on XYZ
  • (Optional) I am interested in working on this issue and would like to be assigned to it

Improvement Description

Currently, all valid palindromes in /foundations/13_palindromes/palindromes.spec.js are of odd-length, meaning that if a user comes up with an improperly implemented two-pointer solution, it can still pass all of the current tests, even if it doesn't actually work for a valid even-length palindrome.

Acceptance Criteria

  • An improperly implemented solution to 13_palindromes will fail the unit test for a valid even-length palindrome

(Optional) Additional Comments

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions