MLT Release 1.0.5

- 1 min read

MLT Release 1.0.5

May 15, 2025

Overview

MLT 1.0.5 introduces enhanced macros, improved output formatting, and better test suite management.

Highlights

  • New Macros: Added mlt_streq and mlt_strneq for string comparisons.
  • Colorized Output: Test results now display with clear indicators: [ OK] for pass (green) and [ERR] for fail (red).
  • Test Suites: Support for organizing tests into suites with execution time tracking.

Documentation: Updated README with detailed usage examples and integration guidelines.

Quick Start

  1. Clone the Repository:
git clone https://github.com/mulatinho/mlt.git
  1. Include mlt.h in Your Project:
cp mlt/mlt.h /path/to/your/project/include/
  1. Compile Your Test File:
gcc -DMLT_TESTING=1 -o test_program test_program.c

Example Test

#include "mlt.h"

int main(void) {
    mlt_start();

    mlt_suite_begin("Basic Tests");
    mlt_assert(2 + 2 == 4);
    mlt_streq("hello", "hello");
    mlt_suite_end();

    mlt_finish();
    return 0;
}

Sample Output

:. Starting test session at Thu May 15 10:46:03 2025

- Running suite: Basic Tests
  [ OK] PASS in 'main()' line 6: 2 + 2 == 4
  [ OK] PASS in 'main()' line 7: strcmp("hello", "hello") == 0

=== Test Session Summary ===
Total time elapsed: 0.001s

Feedback

Explore the new features and enhancements in MLT 1.0.5. Contributions and feedback are welcome at https://github.com/mulatinho/mlt.