Event-Driven Programming in C++ 1.0
A case study on event-driven programming in C++
Loading...
Searching...
No Matches
callbacks_test.cpp File Reference

Unit tests for the callbacks example. More...

#include <cassert>
#include <iostream>
#include "callbacks/callbacks.hpp"

Functions

int main ()
 

Detailed Description

Unit tests for the callbacks example.

This file contains unit tests for the Event class declared in callbacks.hpp. The tests verify that:

  • Triggering an event with no callback set causes no issues.
  • A callback can be correctly set and invoked when the event is triggered.
  • Setting a new callback replaces the previous one.

Basic assertions are used to validate functionality.

Function Documentation

◆ main()

int main ( )