We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd53428 commit f42baa8Copy full SHA for f42baa8
1 file changed
tests/test_file.py
@@ -1,6 +1,9 @@
1
import pytest
2
import numpy as np
3
4
+from corsikaio.constants import BLOCK_SIZE_BYTES
5
+from corsikaio.io import RECORD_MARKER
6
+
7
8
def test_version():
9
from corsikaio import CorsikaFile
@@ -88,7 +91,15 @@ def test_particle_no_parse():
88
91
89
92
90
93
-@pytest.mark.parametrize("size", (273 * 10, 5000, 273 * 2))
94
+@pytest.mark.parametrize(
95
+ "size",
96
+ (
97
+ RECORD_MARKER.size + 22932,
98
+ RECORD_MARKER.size + 2 * 22932,
99
+ RECORD_MARKER.size + 3 * 22932,
100
+ 2000,
101
+ )
102
+)
103
def test_truncated(tmp_path, size):
104
'''Test we raise a meaningful error for a truncated file
105
0 commit comments