trlc icon indicating copy to clipboard operation
trlc copied to clipboard

Linter produces OS dependant output

Open christophkloeffel opened this issue 10 months ago • 1 comments

div_by_zero.rsl:

package Div_By_Zero

type T {
  x Integer
  y Integer
}

checks T {
  x > 2, fatal "x too small"
  y > 2, fatal "y too small"

  100 / (111 - x * y) > 0, "example"
}

output on linux:

100 / (111 - x * y) > 0, "example"
    ^ lint-ug-examples/div_by_zero.rsl:12: issue: divisor could be 0 [vcg-div-by-zero]
    | example record_type triggering error:
    |   T bad_potato {
    |     x = 3
    |     y = 37
    |   }

output on macOS:

100 / (111 - x * y) > 0, "example"
    ^ lint-ug-examples/div_by_zero.rsl:12: issue: divisor could be 0 [vcg-div-by-zero]
    | example record_type triggering error:
    |   T bad_potato {
    |     x = 37
    |     y = 3
    |   }

therefore we will remove this specific test from the tests-system folder until there is a fix for this

christophkloeffel avatar Apr 16 '24 13:04 christophkloeffel