Commit 3e3cf99
committed
review: trim duplicate SUNSHINE_FORMAT_* static_asserts from test_video
Per Copilot review: tests/unit/test_video.cpp:10-13 duplicated the
exact static_asserts that already live next to the enumerator
declarations in src/video.h:28-31. Renumbering a format would require
keeping the two lists in sync.
Replace with a single test-relevant invariant — SUNSHINE_FORMAT_COUNT
must equal PRORES + 1 — and link the comment back to where the
authoritative assertions live. The H264/HEVC/AV1/PRORES==N value
constraints stay in src/video.h where they belong (next to the
constants themselves).1 parent eedcf8f commit 3e3cf99
1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
0 commit comments