Skip to content

Commit df0f539

Browse files
committed
Refine test comment using Expect
1 parent 6570061 commit df0f539

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
@@ -10,10 +10,10 @@
1010
"wavelength, q, expected_tth",
1111
[
1212
# Test conversion of q to tth with valid values
13-
# Case 1: Empty q values are provided (1) with and (2) without wavelength
14-
# 1. Expect empty arrays
13+
# Case 1: Allow empty arrays for q
14+
# 1. Expect empty arrays when wavelength is provided
1515
(4 * np.pi, np.empty((0)), np.empty(0)),
16-
# 2. Expect empty arrays with wavelength warning message
16+
# 2. Expect empty arrays and wavelength warning when no wavelength is provided
1717
(None, np.empty((0)), np.empty((0))),
1818
# Case 2: Non-empty q values are provided without wavelength
1919
# 1. Expect valid tth values in degrees.

0 commit comments

Comments
 (0)