Bug 236 - PDoubleStraight > any Pbomb of lesser value evaluates to true
Summary: PDoubleStraight > any Pbomb of lesser value evaluates to true
Status: CONFIRMED
Alias: None
Product: Group 8
Classification: Unclassified
Component: Main (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- major
Deadline: 2017-11-30
Assignee: suchzheng2-c
URL:
Depends on:
Blocks:
 
Reported: 2017-11-30 20:48 HKT by pchatterj2
Modified: 2017-11-30 20:50 HKT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pchatterj2 2017-11-30 20:48:29 HKT
How to duplicate

Initialise an object of class PDoubleStraight with ArrayList<Integer> input of 
[1, 1, 2 , 2 , 3, 3, 4, 4, 5, 5]

Call method isLarger of this object with the argument new Pbomb(6)

Expected :

Evaluates to false as a bomb pattern has more points/ beats any other pattern apart from a rocket, regardless of value.

Actual : 

Evaluates to true, i.e., shows that the bomb of 6 is smaller