@@ -89,49 +89,30 @@ def test_randu_invalid_shape_type() -> None:
8989 # Test with an invalid shape (non-tuple)
9090 with pytest .raises (ValueError ):
9191 shape = [5 , 5 ]
92- < << << << HEAD
9392 af .randu (shape ) # type: ignore[arg-type]
94- == == == =
95- random .randu (shape ) # type: ignore[arg-type]
96- >> >> >> > 951 aee8 (Update tests . Add randn )
9793
9894
9995# Test cases for the randn function
10096
10197
10298def test_randn_shape_1d () -> None :
10399 shape = (10 ,)
104- < << << << HEAD
105100 result : af .Array = af .randn (shape )
106101 assert isinstance (result , af .Array )
107- == == == =
108- result : Array = random .randn (shape )
109- assert isinstance (result , Array )
110- >> >> >> > 951 aee8 (Update tests . Add randn )
111102 assert result .shape == shape
112103
113104
114105def test_randn_shape_2d () -> None :
115106 shape = (5 , 7 )
116- < << << << HEAD
117107 result : af .Array = af .randn (shape )
118108 assert isinstance (result , af .Array )
119- == == == =
120- result : Array = random .randn (shape )
121- assert isinstance (result , Array )
122- >> >> >> > 951 aee8 (Update tests . Add randn )
123109 assert result .shape == shape
124110
125111
126112def test_randn_shape_3d () -> None :
127113 shape = (3 , 4 , 6 )
128- < << << << HEAD
129114 result : af .Array = af .randn (shape )
130115 assert isinstance (result , af .Array )
131- == == == =
132- result : Array = random .randn (shape )
133- assert isinstance (result , Array )
134- >> >> >> > 951 aee8 (Update tests . Add randn )
135116 assert result .shape == shape
136117
137118
0 commit comments