Skip to content

Commit 5c3fa5c

Browse files
edit test cases
1 parent 6f29b6e commit 5c3fa5c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_transforms.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def test_tth_to_d_bad(inputs, expected):
149149
([4 * np.pi, np.empty((0))], np.empty(0)),
150150
# UC3: User specified valid d values, no wavelength, return empty arrays
151151
(
152-
[None, np.array([0, 0.2, 0.4, 0.6, 0.8, 1])],
152+
[None, np.array([1, 0.8, 0.6, 0.4, 0.2, 0])],
153153
np.array([0, 1, 2, 3, 4, 5]),
154154
),
155155
# UC4: User specified valid d values (with wavelength)
@@ -169,7 +169,7 @@ def test_d_to_tth(inputs, expected):
169169
params_d_to_tth_bad = [
170170
# UC1: user specified invalid d values that result in tth > 180 degrees
171171
(
172-
[4 * np.pi, np.array([0.2, 0.4, 0.6, 0.8, 1, 1.2])],
172+
[4 * np.pi, np.array([1.2, 1, 0.8, 0.6, 0.4, 0.2])],
173173
[
174174
ValueError,
175175
"The supplied input array and wavelength will result in an impossible two-theta. "
@@ -178,7 +178,7 @@ def test_d_to_tth(inputs, expected):
178178
),
179179
# UC2: user specified a wrong wavelength that result in tth > 180 degrees
180180
(
181-
[100, np.array([0, 0.2, 0.4, 0.6, 0.8, 1])],
181+
[100, np.array([1, 0.8, 0.6, 0.4, 0.2, 0])],
182182
[
183183
ValueError,
184184
"The supplied input array and wavelength will result in an impossible two-theta. "

0 commit comments

Comments
 (0)