mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
extract test of function factorial
This commit is contained in:
parent
f58e960a7d
commit
8a7c7bfb3d
@ -112,6 +112,3 @@
|
|||||||
1
|
1
|
||||||
1
|
1
|
||||||
1
|
1
|
||||||
1
|
|
||||||
1
|
|
||||||
1
|
|
||||||
|
@ -137,10 +137,3 @@ select erf(10) = 1;
|
|||||||
select erfc(0) = 1;
|
select erfc(0) = 1;
|
||||||
select erfc(-10) = 2;
|
select erfc(-10) = 2;
|
||||||
select erfc(28) = 0;
|
select erfc(28) = 0;
|
||||||
|
|
||||||
select factorial(-1) = 1;
|
|
||||||
select factorial(0) = 1;
|
|
||||||
select factorial(10) = 3628800;
|
|
||||||
select factorial(100); -- { serverError 36 }
|
|
||||||
select factorial('100'); -- { serverError 43 }
|
|
||||||
select factorial(100.1234); -- { serverError 43 }
|
|
||||||
|
3
tests/queries/0_stateless/02478_factorial.reference
Normal file
3
tests/queries/0_stateless/02478_factorial.reference
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
1
|
||||||
|
1
|
||||||
|
1
|
7
tests/queries/0_stateless/02478_factorial.sql
Normal file
7
tests/queries/0_stateless/02478_factorial.sql
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
select factorial(-1) = 1;
|
||||||
|
select factorial(0) = 1;
|
||||||
|
select factorial(10) = 3628800;
|
||||||
|
|
||||||
|
select factorial(100); -- { serverError 36 }
|
||||||
|
select factorial('100'); -- { serverError 43 }
|
||||||
|
select factorial(100.1234); -- { serverError 43 }
|
Loading…
Reference in New Issue
Block a user