Bug 340

Summary: AAABBBCCCXYY should not be a case of Airplane
Product: Group 8 (2019) Reporter: LXL <xinlinli7-c>
Component: FactoryAssignee: LXL <xinlinli7-c>
Status: RESOLVED INVALID    
Severity: trivial CC: jiaqchen5-c
Priority: Low    
Version: Version1.0   
Hardware: PC   
OS: Mac OS   
Attachments: test screenshot

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.