hcl/specsuite/tests/expressions/operators.hcldec
Martin Atkins 7887810587 specsuite: Fix some regressions
Lately we've made some changes that have affected the behavior of the
specsuite tests, causing them to fail. Much of this was caused by changes
to the harness itself (based on hcldec), although one break in particular
here was an intentional change to the implementation of modulo in
upstream cty to make it produce a more accurate result when used with
a fractional divisor.
2021-02-23 09:05:19 -08:00

58 lines
1.2 KiB
Plaintext

object {
block_map "equality" {
labels = ["operator"]
object {
attr "exactly" { type = bool }
attr "not" { type = bool }
attr "type_mismatch_number" { type = bool }
attr "type_mismatch_bool" { type = bool }
}
}
block_map "inequality" {
labels = ["operator"]
object {
attr "lt" { type = bool }
attr "gt" { type = bool }
attr "eq" { type = bool }
}
}
block "arithmetic" {
object {
attr "add" { type = any }
attr "add_big" { type = any }
attr "sub" { type = any }
attr "sub_neg" { type = any }
attr "mul" { type = any }
attr "div" { type = any }
attr "mod" { type = any }
attr "mod_frac" { type = any }
}
}
block_map "logical_binary" {
labels = ["operator"]
object {
attr "tt" { type = bool }
attr "ft" { type = bool }
attr "tf" { type = bool }
attr "ff" { type = bool }
}
}
block_map "logical_unary" {
labels = ["operator"]
object {
attr "t" { type = bool }
attr "f" { type = bool }
}
}
block "conditional" {
object {
attr "t" { type = any }
attr "f" { type = any }
}
}
}