Opened 9 years ago
Closed 8 years ago
#1274 closed defect (fixed)
WPCS1.5 - Error when compare binary coverage expression with scalar value in boolean result
Reported by: | Bang Pham Huu | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 9.3 |
Component: | petascope | Version: | development |
Keywords: | boolean coverage | Cc: | Dimitar Misev, Vlad Merticariu |
Complexity: | Medium |
Description
in WCPS 1.0 and WCPS 1.5 this query
for c in (mr) return encode(c[i:"CRS:1"(0), j:"CRS:1"(50)] + c[i:"CRS:1"(0), j:"CRS:1"(50)] = 146, "csv")
will return true {t} as c[i(0), j(50)] = 73.
However, it does not work if change the second operand from coverage to scalar value (73) as below:
for c in (mr) return encode(c[i:"CRS:1"(0), j:"CRS:1"(50)] + 73 = 146, "csv")
with WCPS 1.0, it will returns {73} which is not correct.
And WCPS 1.5 it will return exception
java.lang.ClassCastException : petascope.wcps2.translator.BooleanNumericalComparissonScalar cannot be cast to petascope.wcps2.translator.CoverageExpression
Change History (1)
Note:
See TracTickets
for help on using tickets.