zclconf / go-cty

A type system for dynamic values in Go applications
MIT License
338 stars 70 forks source link

add some extra tests demonstrating the weirdness in large numbers #179

Closed liamcervante closed 3 months ago

liamcervante commented 3 months ago

Relates to https://github.com/hashicorp/terraform/issues/34866

This just adds some tests that demonstrate the weirdness from the bug linked above.

The roundtrip works from the RawEquals perspective, but if you convert the round tripped value back into a string it truncates.

liamcervante commented 3 months ago

Closing as these tests were committed in https://github.com/zclconf/go-cty/commit/f41ae52fdfa8a9590aa00c3ab3ff13cef4dd872f#diff-37d4a6da0ea0b82344ec4f09485b638ccdd82efa9f5e71bec5d7fa7b4c9ccc86