Skip to content

0.0.1

Latest

Choose a tag to compare

@adnanhashmi09 adnanhashmi09 released this 29 Oct 12:53
· 1 commit to main since this release

tinytest v1.0.0

First release of tinytest - A Simple and Tiny C Testing Library

Features

  • Lightweight unit testing framework for C projects
  • Type-generic testing support for multiple data types:
    • Integers
    • Floating point numbers (float, double)
    • Strings (char*, const char*)
  • Colored test output with detailed failure messages
  • Cross-platform support:
    • Linux (AMD64, ARM64)
    • macOS (Intel, Apple Silicon)
  • Zero external dependencies

Included Files

  • Header file: tinytest.h
  • Shared libraries:
    • Linux: libtinytest.so (AMD64, ARM64)
    • macOS: libtinytest.dylib (Intel, Apple Silicon)

Changes in This Release

  • Initial implementation of core testing functionality
  • Added support for generic type comparisons using C11's _Generic
  • Implemented colored output for test results
  • Added detailed error reporting with expected vs actual values
  • Created Makefile for cross-platform compilation using zig
  • Added comprehensive documentation and usage examples
  • Generated libraries for multiple architectures using zig as compiler

Installation

Download the appropriate files for your platform:

  1. tinytest.h (required for all platforms)
  2. Platform-specific shared library:
    • Linux AMD64: libtinytest.so
    • Linux ARM64: libtinytest.so
    • macOS Intel: libtinytest.dylib
    • macOS ARM64: libtinytest.dylib

Known Issues

None reported

Acknowledgments

  • Uses zig compiler for cross-platform compilation

Full Changelog: https://github.com/adnanhashmi09/tinytest/commits/0.0.1