From 14c72d616a4a372827992a1b1f9ccda56b43b9d4 Mon Sep 17 00:00:00 2001 From: "tingbo.liao" Date: Thu, 2 Jan 2025 10:05:57 +0800 Subject: [PATCH] Add the test cases of rot to improve unit testing. Signed-off-by: tingbo.liao --- utest/test_rot.c | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/utest/test_rot.c b/utest/test_rot.c index 0e74ecbb36..03776586b0 100644 --- a/utest/test_rot.c +++ b/utest/test_rot.c @@ -53,6 +53,23 @@ CTEST(rot,drot_inc_0) ASSERT_DBL_NEAR_TOL(y2[i], y1[i], DOUBLE_EPS); } } +CTEST(rot,drot_inc_1) +{ + blasint i=0; + blasint N=4,incX=1,incY=1; + double c=1.0,s=1.0; + double x1[]={1.0,3.0,5.0,7.0}; + double y1[]={2.0,4.0,6.0,8.0}; + double x2[]={3.0,7.0,11.0,15.0}; + double y2[]={1.0,1.0,1.0,1.0}; + + BLASFUNC(drot)(&N,x1,&incX,y1,&incY,&c,&s); + + for(i=0; i