From e931554dee3a08d7f8ba6ac62c88a472f3c96cfe Mon Sep 17 00:00:00 2001 From: Ben McDonald <46734217+bmcdonald3@users.noreply.github.com> Date: Tue, 11 Jul 2023 10:37:40 -0700 Subject: [PATCH] Add bool to bigint cast test Signed-off-by: Ben McDonald <46734217+bmcdonald3@users.noreply.github.com> --- test/library/standard/BigInteger/boolCast.chpl | 7 +++++++ test/library/standard/BigInteger/boolCast.good | 2 ++ 2 files changed, 9 insertions(+) create mode 100644 test/library/standard/BigInteger/boolCast.chpl create mode 100644 test/library/standard/BigInteger/boolCast.good diff --git a/test/library/standard/BigInteger/boolCast.chpl b/test/library/standard/BigInteger/boolCast.chpl new file mode 100644 index 000000000000..5de52d03c7f0 --- /dev/null +++ b/test/library/standard/BigInteger/boolCast.chpl @@ -0,0 +1,7 @@ +use BigInteger; + +var a = true; +writeln(a:bigint); + +var b = false; +writeln(b:bigint); diff --git a/test/library/standard/BigInteger/boolCast.good b/test/library/standard/BigInteger/boolCast.good new file mode 100644 index 000000000000..b261da18d51a --- /dev/null +++ b/test/library/standard/BigInteger/boolCast.good @@ -0,0 +1,2 @@ +1 +0