7 This file is part of the Public Domain C Library (PDCLib).
8 Permission is granted to use, modify, and / or redistribute at will.
17 return ( j >= 0 ) ? j : -j;
23 #include <_PDCLIB_test.h>
29 TESTCASE( abs( 0 ) == 0 );
30 TESTCASE( abs( INT_MAX ) == INT_MAX );
31 TESTCASE( abs( INT_MIN + 1 ) == -( INT_MIN + 1 ) );