fix: coerce booleans to numbers for comparison in exprparser - #1030
Conversation
Co-Authored-By: Markus Wolf <markus.wolf@new-work.se>
Codecov Report
@@ Coverage Diff @@
## master #1030 +/- ##
==========================================
+ Coverage 57.50% 58.73% +1.22%
==========================================
Files 32 34 +2
Lines 4594 4650 +56
==========================================
+ Hits 2642 2731 +89
+ Misses 1729 1690 -39
- Partials 223 229 +6
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
|
@ZauberNerd - implementation looks fine, but I'm curious, when is this needed? |
|
@cplee here is an example workflow that fails: The problem was, that we only coerced to numbers when the inputs are differet: act/pkg/exprparser/interpreter.go Lines 298 to 305 in b681c31 act/pkg/exprparser/interpreter.go Lines 307 to 329 in b681c31 |
|
Ah - |
|
Ah, yes. I added those tests, to ensure that it doesn't fail for other types of comparison. There is also one test for |
|
@ZauberNerd this pull request has failed checks 🛠 |
|
codecov upload failed. I'm re-running the workflow now. |
No description provided.