terraform/config/hcl2shim
Martin Atkins 995042666a config/hcl2shim: ValuesSDKEquivalent float64 comparison of numbers
The SDK uses only the native int and float64 types internally for values
that are specified as being "number" in schema, so for SDK purposes only
a float64 level of precision is significant.

To avoid any weirdness introduced as we shim and un-shim numbers, we'll
reduce floating point numbers to float64 precision before comparing them
to try to mimic the result the SDK itself would've gotten from comparing
its own float64 versions of these values using the Go "==" operator.
2019-01-22 18:45:21 -08:00
..
flatmap.go add zero values to sets with a flatmap count of 1 2019-01-08 16:26:21 -05:00
flatmap_test.go add zero values to sets with a flatmap count of 1 2019-01-08 16:26:21 -05:00
paths.go trim index steps from RequiresNew paths 2018-10-31 13:40:01 -04:00
paths_test.go trim index steps from RequiresNew paths 2018-10-31 13:40:01 -04:00
single_attr_body.go config/hcl2shim: make some of the HCL2 shim functions public 2017-10-16 17:54:02 -07:00
values.go Revert "insert empty objects into config from empty blocks" 2019-01-12 10:41:04 -05:00
values_equiv.go config/hcl2shim: ValuesSDKEquivalent float64 comparison of numbers 2019-01-22 18:45:21 -08:00
values_equiv_test.go config/hcl2shim: ValuesSDKEquivalent float64 comparison of numbers 2019-01-22 18:45:21 -08:00
values_test.go Revert "insert empty objects into config from empty blocks" 2019-01-12 10:41:04 -05:00