From 58d52c37153a19b93f4731e91b3083c4abf81406 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sun, 28 Jun 2020 01:37:52 +0300 Subject: [PATCH] Add a test --- .../0_stateless/01350_intdiv_nontrivial_fpe.reference | 3 +++ tests/queries/0_stateless/01350_intdiv_nontrivial_fpe.sql | 5 +++++ 2 files changed, 8 insertions(+) create mode 100644 tests/queries/0_stateless/01350_intdiv_nontrivial_fpe.reference create mode 100644 tests/queries/0_stateless/01350_intdiv_nontrivial_fpe.sql diff --git a/tests/queries/0_stateless/01350_intdiv_nontrivial_fpe.reference b/tests/queries/0_stateless/01350_intdiv_nontrivial_fpe.reference new file mode 100644 index 00000000000..ff5ca85eb55 --- /dev/null +++ b/tests/queries/0_stateless/01350_intdiv_nontrivial_fpe.reference @@ -0,0 +1,3 @@ +-36170086419038336 +-140739635871744 +-2147483648 diff --git a/tests/queries/0_stateless/01350_intdiv_nontrivial_fpe.sql b/tests/queries/0_stateless/01350_intdiv_nontrivial_fpe.sql new file mode 100644 index 00000000000..29dfb2c3fda --- /dev/null +++ b/tests/queries/0_stateless/01350_intdiv_nontrivial_fpe.sql @@ -0,0 +1,5 @@ +select intDiv(-9223372036854775808, 255); +select intDiv(-9223372036854775808, 65535); +select intDiv(-9223372036854775808, 4294967295); +select intDiv(-9223372036854775808, 18446744073709551615); -- { serverError 153 } +select intDiv(-9223372036854775808, -1); -- { serverError 153 }