Skip to content

Commit

Permalink
hardened assertNotInvalid and fixed assertInvalid for roInvalid
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdp committed Jan 22, 2025
1 parent cba39ca commit b5506e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/src/source/rooibos/BaseTestSuite.bs
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ namespace rooibos
end if

try
if type(value) <> "Invalid"
if rooibos.common.getSafeType(value) <> "Invalid"
if msg = ""
actual = rooibos.common.asMultilineString(value, true)
msg = `expected "${rooibos.common.truncateString(actual)}" to be invalid`
Expand Down Expand Up @@ -573,7 +573,7 @@ namespace rooibos
return false
end if
try
if value = invalid
if rooibos.common.getSafeType(value) = "Invalid"
if msg = ""
actual = rooibos.common.asMultilineString(value, true)
msg = `expected "${rooibos.common.truncateString(actual)}" to not be invalid`
Expand Down

0 comments on commit b5506e6

Please sign in to comment.