/* Collection of code snippets by Arne Vajhøj */
/* (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) */
#include <stdio.h>
#include <stdlib.h>

#define TEST(a, b) printf(#a " == " #b " : %d\n", a == b)

int main()
{
    TEST(0, 0);
    TEST(0, 1);
    TEST(1, 0);
    TEST(1, 1);
    TEST(0, 0.0);
    TEST(0, 1.0);
    TEST(1, 0.0);
    TEST(1, 1.0);
    TEST(0, 0.1);
    TEST(0, 1.1);
    TEST(1, 0.1);
    TEST(1, 1.1);
    TEST(0, FALSE);
    TEST(0, TRUE);
    TEST(1, FALSE);
    TEST(1, TRUE);
    TEST(0, "ABC");
    TEST(0, NULL);
    TEST(1, "ABC");
    TEST(1, NULL);
    return 0;
}
