@@ -95,7 +95,7 @@ contains
9595
9696 ! Unit test for the torch_tensor_empty subroutine
9797 @test(testparameters={get_parameters_requires_grad()})
98- subroutine test_torch_tensor_empty (this)
98+ subroutine test_empty (this)
9999 use ftorch_tensor, only: torch_tensor_empty
100100
101101 implicit none
@@ -120,11 +120,11 @@ contains
120120 @assertEqual(expected_stride, tensor % get_stride())
121121 @assertEqual(tensor_shape, tensor % get_shape())
122122
123- end subroutine test_torch_tensor_empty
123+ end subroutine test_empty
124124
125125 ! Unit test for the torch_tensor_zeros subroutine
126126 @test(testParameters={get_parameters_requires_grad()})
127- subroutine test_torch_tensor_zeros (this)
127+ subroutine test_zeros (this)
128128 use ftorch_tensor, only: torch_tensor_zeros
129129
130130 implicit none
@@ -160,13 +160,13 @@ contains
160160
161161 ! Check that the tensor values are all zero
162162 expected(:,:) = 0.0
163- @assertTrue(allclose(out_data, expected, test_name="test_torch_tensor_zeros "))
163+ @assertTrue(allclose(out_data, expected, test_name="test_zeros "))
164164
165- end subroutine test_torch_tensor_zeros
165+ end subroutine test_zeros
166166
167167 ! Unit test for the torch_tensor_ones subroutine
168168 @test(testParameters={get_parameters_requires_grad()})
169- subroutine test_torch_tensor_ones (this)
169+ subroutine test_ones (this)
170170 use ftorch_tensor, only: torch_tensor_ones
171171
172172 implicit none
@@ -202,9 +202,9 @@ contains
202202
203203 ! Check that the tensor values are all one
204204 expected(:,:) = 1.0
205- @assertTrue(allclose(out_data, expected, test_name="test_torch_tensor_ones "))
205+ @assertTrue(allclose(out_data, expected, test_name="test_ones "))
206206
207- end subroutine test_torch_tensor_ones
207+ end subroutine test_ones
208208
209209 ! Unit test for the torch_tensor_from_array subroutine in the 1D case
210210 @test(testParameters={get_parameters_requires_grad()})
@@ -243,7 +243,7 @@ contains
243243 tensor2 = tensor1
244244
245245 ! Compare the data in the tensor to the input data
246- @assertTrue(allclose(out_data, in_data, test_name="test_torch_tensor_from_array "))
246+ @assertTrue(allclose(out_data, in_data, test_name="test_from_array "))
247247
248248 end subroutine test_torch_from_array_1d
249249
@@ -295,7 +295,7 @@ contains
295295
296296 ! Compare the data in the tensor to the (reordered) input data
297297 expected(:,:) = reshape(in_data, [2,3], order=tensor_layout)
298- @assertTrue(allclose(out_data, expected, test_name="test_torch_tensor_from_array "))
298+ @assertTrue(allclose(out_data, expected, test_name="test_from_array "))
299299
300300 end subroutine test_torch_from_array_2d
301301
@@ -347,7 +347,7 @@ contains
347347
348348 ! Compare the data in the tensor to the (reordered) input data
349349 expected(:,:,:) = reshape(in_data, [1,2,3], order=tensor_layout)
350- @assertTrue(allclose(out_data, expected, test_name="test_torch_tensor_from_array "))
350+ @assertTrue(allclose(out_data, expected, test_name="test_from_array "))
351351
352352 end subroutine test_torch_from_array_3d
353353
@@ -388,14 +388,14 @@ contains
388388 tensor2 = tensor1
389389
390390 ! Compare the data in the tensor to the input data
391- @assertTrue(allclose(out_data, in_data, test_name="test_torch_tensor_from_blob "))
391+ @assertTrue(allclose(out_data, in_data, test_name="test_from_blob "))
392392
393393 end subroutine test_torch_from_blob
394394
395395 ! Unit test for destroying tensors, both manually with torch_tensor_delete and automatically (via
396396 ! torch_tensor's destructor)
397397 @test(testparameters={get_parameters_destruction()})
398- subroutine test_torch_tensor_destruction (this)
398+ subroutine test_destruction (this)
399399 use ftorch_tensor, only: torch_tensor_empty
400400
401401 implicit none
@@ -427,6 +427,6 @@ contains
427427
428428 end do
429429
430- end subroutine test_torch_tensor_destruction
430+ end subroutine test_destruction
431431
432432end module unittest_tensor_constructors_destructors
0 commit comments