3 This file is part of the Public Domain C Library (PDCLib).
4 Permission is granted to use, modify, and / or redistribute at will.
11 long int labs( long int j )
13 return ( j >= 0 ) ? j : -j;
19 #include <_PDCLIB_test.h>
24 TESTCASE( labs( 0 ) == 0 );
25 TESTCASE( labs( LONG_MAX ) == LONG_MAX );
26 TESTCASE( labs( LONG_MIN + 1 ) == -( LONG_MIN + 1 ) );