There's only a single line of code, and I won't bother you with the data as it is quite large.
I have a list of all requirements for some software in allRequirements
and a second list of those requirements for which a test case exists in requirementWithCoverage
.
I want to generate a list of those requirements with no test case coverage.
Lots of websites and S.O questions give the answer as this :
notCovered = list(set(allRequirements) - set(requirementWithCoverage))
However:
len(set(allRequirements))
is 779 and
len(set(requirementWithCoverage))
is 201, BUT
len(set(notCovered))
is 650
Obviously, I am making a very basic mistake - but for the life of me I can't see it. What am I doing wrongly?