5 This file is part of the Public Domain C Library (PDCLib).
6 Permission is granted to use, modify, and / or redistribute at will.
15 return ( j >= 0 ) ? j : -j;
21 #include <_PDCLIB_test.h>
26 TESTCASE( abs( 0 ) == 0 );
27 TESTCASE( abs( INT_MAX ) == INT_MAX );
28 TESTCASE( abs( INT_MIN + 1 ) == -( INT_MIN + 1 ) );