From a5c6815d863aa677ede77054a41fb5bd0f410194 Mon Sep 17 00:00:00 2001 From: Jim Larson <32469398+JimLarson@users.noreply.github.com> Date: Wed, 30 Sep 2020 18:35:55 -0700 Subject: [PATCH] Conformance tests for double to big uint. (#151) --- tests/simple/testdata/conversions.textproto | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/simple/testdata/conversions.textproto b/tests/simple/testdata/conversions.textproto index 6f464641..e9d09092 100644 --- a/tests/simple/testdata/conversions.textproto +++ b/tests/simple/testdata/conversions.textproto @@ -422,7 +422,13 @@ section { value: { uint64_value: 26 } } test { - name: "double_range" + name: "double_range_beyond_int" + description: "Checks conversion of integer outside int range." + expr: "uint(1e19)" + value: { uint64_value: 10000000000000000000 } + } + test { + name: "double_range_err" expr: "uint(6.022e23)" eval_error { errors { message: "range" }