USING: kernel math math.compare math.functions tools.test ; IN: math.compare.tests [ -1 ] [ -1 5 absmin ] unit-test [ -1 ] [ -1 -5 absmin ] unit-test [ -5 ] [ 1 -5 absmax ] unit-test [ 5 ] [ 1 5 absmax ] unit-test [ 0 ] [ -1 -3 posmax ] unit-test [ 1 ] [ 1 -3 posmax ] unit-test [ 3 ] [ -1 3 posmax ] unit-test [ 0 ] [ 1 3 negmin ] unit-test [ -3 ] [ 1 -3 negmin ] unit-test [ -1 ] [ -1 3 negmin ] unit-test