extract test of function factorial

This commit is contained in:
taiyang-li 2022-11-10 21:12:55 +08:00
parent f58e960a7d
commit 8a7c7bfb3d
4 changed files with 10 additions and 10 deletions

View File

@ -112,6 +112,3 @@
1
1
1
1
1
1

View File

@ -137,10 +137,3 @@ select erf(10) = 1;
select erfc(0) = 1;
select erfc(-10) = 2;
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 }

View File

@ -0,0 +1,3 @@
1
1
1

View 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 }