Files
Dreierpack-Manager/src/ui/source_notice_test_helpers.hpp
T
ClaudeandClaude Sonnet 5.5 287b5a9251 Add header comments to the source files
Every source file in ui, app, game, formats, cli, audio and launch that had none
now starts with a short English comment: what it implements, what state it owns
and how it relates to its neighbours (request/acknowledge flow, pairs of files,
random generator use). Comment lines only; the full build and the runnable
tests are unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-06 09:15:23 +01:00

14 lines
619 B
C++

// SPDX-License-Identifier: GPL-3.0-only
// Test helper shared by UI tests: checks that a notice dialog uses the original red exclamation-mark art.
#pragma once
#include <stdexcept>
#include "formats/vga.hpp"
namespace bmh::ui::test {
inline void expect_notice_symbols(const Image& image,const Image& atlas) {
for(int y=0;y<22;++y)for(int x=0;x<22;++x)
for(int left:{99,192})
if(image.pixels.at(size_t(90+y)*image.width+left+x)!=atlas.pixels.at(size_t(44+y)*atlas.width+55+x))
throw std::runtime_error("notice must use Original red exclamation art, not green question art");
}
}