We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0953d3 commit 1d630a0Copy full SHA for 1d630a0
tests/test_wrapper.py
@@ -3,7 +3,7 @@
3
import glob
4
import os.path
5
6
-from check_python_h_first.wrapper import sort_order
+from check_python_h_first.wrapper import find_c_cpp_files, sort_order
7
8
THIS_DIR = os.path.dirname(__file__)
9
@@ -15,3 +15,9 @@ def test_sort_order():
15
"""Test that the sort function puts headers first."""
16
result = sorted(SOURCE_LIST + HEADER_LIST, key=sort_order)
17
assert result == HEADER_LIST + SOURCE_LIST
18
+
19
20
+def test_find_c_cpp_files():
21
+ """Test that the function can find all the files."""
22
+ result = find_c_cpp_files(THIS_DIR)
23
+ assert set(result) == set(HEADER_LIST + SOURCE_LIST)
0 commit comments