def test_list_slice():
 a = HyList([1, 2, 3, 4])
 sl1 = a[1:]
 sl5 = a[5:]
 assert (type(sl1) == HyList)
 assert (sl1 == HyList([2, 3, 4]))
 assert (type(sl5) == HyList)
 assert (sl5 == HyList([]))

def test_list_slice ( ) : a = HyList ( [ 1 , 2 , 3 , 4 ] ) sl1 = a [ 1 : ] sl5 = a [ 5 : ] assert ( type ( sl1 ) == HyList ) assert ( sl1 == HyList ( [ 2 , 3 , 4 ] ) ) assert ( type ( sl5 ) == HyList ) assert ( sl5 == HyList ( [ ] ) )
check that slicing a hylist produces a hylist .