def test_cut_off():
 assert (hug.types.cut_off(10)('text') == 'text')
 assert (hug.types.cut_off(10)(10) == '10')
 assert (hug.types.cut_off(10)('some really long text') == 'some reall')
 assert ('10' in hug.types.cut_off(10).__doc__)

def test_cut_off ( ) : assert ( hug . types . cut_off ( 10 ) ( 'text' ) == 'text' ) assert ( hug . types . cut_off ( 10 ) ( 10 ) == '10' ) assert ( hug . types . cut_off ( 10 ) ( 'some really long text' ) == 'some reall' ) assert ( '10' in hug . types . cut_off ( 10 ) . __doc__ )
test to ensure that hugs cut_off type works as expected .