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>
14 lines
619 B
C++
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");
|
|
}
|
|
}
|