Skip to content

Commit

Permalink
Conformance tests for double to big uint. (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
JimLarson authored Oct 1, 2020
1 parent a93b60d commit a5c6815
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/simple/testdata/conversions.textproto
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down

0 comments on commit a5c6815

Please sign in to comment.