88 std::array<int, 1> array_1 = {0};
89 std::array<int, 1> array_2 = {1};
90 std::array<int, 2> array_3 = {0, 2};
91 std::array<int, 3> array_4 = {-60, 24, 18};
92 std::array<int, 4> array_5 = {100, -100, -100, 200};
93 std::array<int, 5> array_6 = {0, 0, 0, 0, 0};
94 std::array<int, 7> array_7 = {10350, -24150, 0, 17250, 37950, -127650, 51750};
95 std::array<int, 7> array_8 = {9500000, -12121200, 0, 4444, 0, 0, 123456789};
97 assert(math::gcd_of_n_numbers::gcd(array_1) == -1);
98 assert(math::gcd_of_n_numbers::gcd(array_2) == 1);
99 assert(math::gcd_of_n_numbers::gcd(array_3) == 2);
100 assert(math::gcd_of_n_numbers::gcd(array_4) == 6);
101 assert(math::gcd_of_n_numbers::gcd(array_5) == 100);
102 assert(math::gcd_of_n_numbers::gcd(array_6) == -1);
103 assert(math::gcd_of_n_numbers::gcd(array_7) == 3450);
104 assert(math::gcd_of_n_numbers::gcd(array_8) == 1);