Bug 340 - AAABBBCCCXYY should not be a case of Airplane
Summary: AAABBBCCCXYY should not be a case of Airplane
Status: RESOLVED INVALID
Alias: None
Product: Group 8 (2019)
Classification: Unclassified
Component: Factory (show other bugs)
Version: Version1.0
Hardware: PC Mac OS
: Low trivial
Assignee: LXL
URL:
Depends on:
Blocks:
 
Reported: 2019-12-04 22:37 HKT by LXL
Modified: 2019-12-05 00:45 HKT (History)
1 user (show)

See Also:


Attachments
test screenshot (74.75 KB, image/jpeg)
2019-12-04 22:37 HKT, LXL
Details

Note You need to log in before you can comment on or make changes to this bug.
Description LXL 2019-12-04 22:37:06 HKT
Created attachment 36 [details]
test screenshot

One of test cases for isAirplane() method in CardAnalyser failed. We use "4445556668XX" as the input of isAirplane, which is not a case Airplane pattern, but the method returns true.

Expected output: false

Actual output: true

The screen shoot of test script and result is attached.
Comment 1 LXL 2019-12-05 00:45:17 HKT
According to the rules of "Fight the Landlord", the input "4445556668XX" is an 'Airplane'. The error appears because the expect result of the testCast is wrong, instead of the code.

Therefore, this bug is invalid, we only need to change the expect result of the testCase.