Skip to content
Snippets Groups Projects
Commit 6341ca53 authored by Gervaise Henry's avatar Gervaise Henry :cowboy:
Browse files

Convert string to int for range checking in consistency test

parent ade9acec
Branches
Tags
2 merge requests!37v0.0.1,!36Metadata output update
Pipeline #7837 passed with stages
in 1 hour, 13 minutes, and 37 seconds
......@@ -24,7 +24,7 @@ def readAssigned(fileAssigned,fileExpectAssigned):
expect = open(fileExpectAssigned, "r")
lineAssigned = assigned.readline()
lineExpect = expect.readline()
if lineAssigned.strip() < (lineExpect.strip()+(lineExpect.strip()*0.00001)) and lineAssigned.strip() > (lineExpect.strip()-(lineExpect.strip()*0.00001)):
if int(lineAssigned.strip()) < (int(lineExpect.strip())+(int(lineExpect.strip())*0.00001)) and int(lineAssigned.strip()) > (int(lineExpect.strip())-(int(lineExpect.strip())*0.00001)):
data = True
return data
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment