Add method to explicitly strip hyphens

Description

Overview

Currently the utils don't provide a way to remove hyphens from a valid ISBN (10 or 13), without also converting them.

The use case is:
Given an ISBN, validate and convert to ISBN 13 w/o hyphens.

  • if a valid ISBN 10, convert to an ISBN 13 w/o hyphens Check Mark

  • if a valid ISBN 13, return the ISBN 13 w/o hyphens Cross Mark

The convertTo13DigitNumber(String) function only accepts valid ISBN 10s. Anything else (including a valid ISBN 13) will give you null.

The ability to insert hyphens already exists with the insertHyphens(String) method. We should have a corresponding removeHyphens(String) method.

Acceptance Criteria

  • the ability to explicitly remove hyphens from either a 10 or 13 digit ISBN has been added

  • unit tests are updated

  • a new version of the utils has been released (v1.1.1?)

Environment

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:

Craig McNallyOctober 9, 2019 at 5:26 PM

Ann-Marie BreauxOctober 8, 2019 at 8:45 PM

and Just FYI - Thunderjet is dong the work on this. Hopefully you saw lots of good things with all the Thunderjet usage of the ISBN utility during the sprint demo!!

Done

Details

Assignee

Reporter

Tester Assignee

Priority

Story Points

Sprint

Development Team

Thunderjet

Fix versions

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created October 8, 2019 at 6:38 PM
Updated November 5, 2019 at 6:12 AM
Resolved October 9, 2019 at 5:25 PM
TestRail: Cases
TestRail: Runs

Flag notifications