1 USING: kernel math math.compare math.functions tools.test ;
4 [ -1 ] [ -1 5 absmin ] unit-test
5 [ -1 ] [ -1 -5 absmin ] unit-test
7 [ -5 ] [ 1 -5 absmax ] unit-test
8 [ 5 ] [ 1 5 absmax ] unit-test
10 [ 0 ] [ -1 -3 posmax ] unit-test
11 [ 1 ] [ 1 -3 posmax ] unit-test
12 [ 3 ] [ -1 3 posmax ] unit-test
14 [ 0 ] [ 1 3 negmin ] unit-test
15 [ -3 ] [ 1 -3 negmin ] unit-test
16 [ -1 ] [ -1 3 negmin ] unit-test
18 [ 0 ] [ 0 -1 2 clamp ] unit-test
19 [ 1 ] [ 0 1 2 clamp ] unit-test
20 [ 2 ] [ 0 3 2 clamp ] unit-test