def test_longer_than():
 assert (hug.types.longer_than(10)('quite a bit of text here should be') == 'quite a bit of text here should be')
 assert (hug.types.longer_than(10)(12345678910) == '12345678910')
 assert (hug.types.longer_than(10)(100123456789100) == '100123456789100')
 assert ('10' in hug.types.longer_than(10).__doc__)
 with pytest.raises(ValueError):
  assert hug.types.longer_than(10)('short')

def test_longer_than ( ) : assert ( hug . types . longer_than ( 10 ) ( 'quite a bit of text here should be' ) == 'quite a bit of text here should be' ) assert ( hug . types . longer_than ( 10 ) ( 12345678910 ) == '12345678910' ) assert ( hug . types . longer_than ( 10 ) ( 100123456789100 ) == '100123456789100' ) assert ( '10' in hug . types . longer_than ( 10 ) . __doc__ ) with pytest . raises ( ValueError ) : assert hug . types . longer_than ( 10 ) ( 'short' )
tests that hugs greater than type succefully limis the values passed in .