playground-sdk/tests/api_synthetic.cpp

19 lines
646 B
C++

#include "audio/audio.h"
#include "audio/cadi_bank.h"
#include "gfx/character.h"
#include "gfx/draw.h"
#include "platform/display.h"
#include <cassert>
int main() {
playground::DecodedSound sound;
std::string error;
const playground::Bytes invalid{0, 1, 2, 3};
assert(!playground::decodeOgg(invalid, sound, &error));
playground::CadiBank bank;
assert(!bank.load(invalid, &error));
// Compile-time API coverage for display, drawing, and character parsing.
static_assert(sizeof(playground::Display) > 0);
static_assert(sizeof(playground::Draw) > 0);
static_assert(sizeof(playground::CharacterAtlas) > 0);
}