44# or https://github.com/scikit-hep/vector for details.
55
66import pytest
7- from hypothesis import given , strategies as st
87
9- import vector
8+ # from hypothesis import given
9+ # from hypothesis import strategies as st
10+
11+ # import vector
1012
1113# If ROOT is not available, skip these tests.
1214ROOT = pytest .importorskip ("ROOT" )
1315
1416# 4D constructor arguments to get all the weird cases.
1517constructor = [
1618 (0 , 0 , 0 , 0 ),
17- (0 , 0 , 1 , 0 ), # theta == 0.0
19+ (0 , 0 , 1 , 0 ), # theta == 0.0
1820 (0 , 0 , - 1 , 0 ),
1921 (0 , 0 , 1 , 0 ),
2022 (0 , 0 , 0 , 4294967296 ),
2426 (1 , 2 , 3 , 0 ),
2527 (1 , 2 , 3 , 10 ),
2628 (1 , 2 , 3 , - 10 ),
27- (1. , 2. , 3. , 2.5 ),
29+ (1.0 , 2.0 , 3.0 , 2.5 ),
2830 (1 , 2 , 3 , 2.5 ),
2931 (1 , 2 , 3 , - 2.5 ),
3032]
3133
3234# Coordinate conversion methods to apply to the VectorObject4D.
3335coordinate_list = [
3436 "to_xyzt" ,
35- "to_xythetat" , # may fail for constructor2
37+ "to_xythetat" , # may fail for constructor2
3638 "to_xyetat" ,
3739 "to_rhophizt" ,
3840 "to_rhophithetat" ,
4547 "to_rhophietatau" ,
4648]
4749
50+
4851@pytest .fixture (scope = "module" , params = coordinate_list )
4952def coordinates (request ):
5053 return request .param
5154
55+
5256angle_list = [
5357 0 ,
5458 0.0 ,
@@ -62,10 +66,12 @@ def coordinates(request):
6266 - 6.283185307179586 ,
6367]
6468
69+
6570@pytest .fixture (scope = "module" , params = angle_list )
6671def angle (request ):
6772 return request .param
6873
74+
6975scalar_list = [
7076 0 ,
7177 - 1 ,
@@ -74,6 +80,7 @@ def angle(request):
7480 - 100000.0000 ,
7581]
7682
83+
7784@pytest .fixture (scope = "module" , params = scalar_list )
7885def scalar (request ):
7986 return request .param
0 commit comments