<s> import numpy as np <EOL> import parakeet <EOL> from parakeet . testing_helpers import run_local_tests <EOL> @ parakeet . jit <EOL> def rint ( x ) : <EOL> return np . rint ( x ) <EOL> def test_rint ( ) : <EOL> assert np . rint ( <NUM_LIT> ) == rint ( <NUM_LIT> ) <EOL> assert np . rint ( - <NUM_LIT:1> ) == rint ( - <NUM_LIT:1> ) <EOL> assert np . rint ( - <NUM_LIT:0.1> ) == rint ( - <NUM_LIT:0.1> ) <EOL> x = np . array ( [ - <NUM_LIT:1> , <NUM_LIT:2> , <NUM_LIT:0> ] ) <EOL> assert np . allclose ( np . rint ( x ) , rint ( x ) ) <EOL> y = np . array ( [ - <NUM_LIT> , - <NUM_LIT> , - <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ] ) <EOL> assert np . allclose ( np . rint ( y ) , rint ( y ) ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> run_local_tests ( ) </s>
