Skip to content

Commit f44b835

Browse files
roaffixsyurkevi
authored andcommitted
Fix import. Fix tests. Fix backend imports
1 parent 23ecd80 commit f44b835

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

tests/test_library/test_random.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -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-
>>>>>>> 951aee8 (Update tests. Add randn)
9793

9894

9995
# Test cases for the randn function
10096

10197

10298
def 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-
>>>>>>> 951aee8 (Update tests. Add randn)
111102
assert result.shape == shape
112103

113104

114105
def 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-
>>>>>>> 951aee8 (Update tests. Add randn)
123109
assert result.shape == shape
124110

125111

126112
def 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-
>>>>>>> 951aee8 (Update tests. Add randn)
135116
assert result.shape == shape
136117

137118

0 commit comments

Comments
 (0)