Skip to content

Commit 7cd40e8

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 95b3f2a commit 7cd40e8

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

test/test_helper.py

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,21 @@
22

33
from fortls.helper_functions import detect_fixed_format
44

5+
56
def test_detect_fixed_format():
6-
assert detect_fixed_format([' free format']) == False
7-
assert detect_fixed_format([' INTEGER, PARAMETER :: N = 10']) == False
8-
assert detect_fixed_format(['C Fixed format']) == True
9-
assert detect_fixed_format(['trailing line & ! comment']) == False
10-
assert detect_fixed_format(['#if defined(A) && !defined(B)', 'C Fixed format', '#endif'], preproc=True) == True
11-
assert detect_fixed_format(['#if defined(A) && !defined(B)', ' free format', '#endif'], preproc=True) == False
7+
assert detect_fixed_format([" free format"]) == False
8+
assert detect_fixed_format([" INTEGER, PARAMETER :: N = 10"]) == False
9+
assert detect_fixed_format(["C Fixed format"]) == True
10+
assert detect_fixed_format(["trailing line & ! comment"]) == False
11+
assert (
12+
detect_fixed_format(
13+
["#if defined(A) && !defined(B)", "C Fixed format", "#endif"], preproc=True
14+
)
15+
== True
16+
)
17+
assert (
18+
detect_fixed_format(
19+
["#if defined(A) && !defined(B)", " free format", "#endif"], preproc=True
20+
)
21+
== False
22+
)

0 commit comments

Comments
 (0)