FAILURE MAP
← Case archive

FA-84688 / Betting odds conversion / Member archive

Explicit plus-sign American lines parsed as decimals · case 03

"+150" is read as a 150.00 decimal price, or empty input crashes.

Member previewVariant 3 · 3 implementations · 10 checks per implementation

Case contract

Normalise user-typed odds to a decimal price string with two decimals (half up). Detection order: text containing "/" is fractional a/b; text starting with "+" or "-" is American (magnitude >= 100); an unsigned integer >= 100 is a positive American line; anything else is a decimal price, where a comma is the decimal separator ("2,50"). Unparseable input, zero denominators, magnitudes below 100 and results not above 1 return "invalid".

Why this case matters

Bet-slip inputs accept several odds formats and must not misclassify ambiguous text.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
regression: plus sign detection"100.00""2.00"Failed

MEMBER ARCHIVE

The complete case is available to members.

This record includes three runnable implementations, regression fixtures, execution results, and source hashes.

Member access is invitation-based. Sign in with your invited account to inspect the sources.

Sign in to the archive ↗