Fix 216_test_nested_sibling_extend and 217_test_parent_and_sibling_extend. trim was allowing extra duplicate selectors to come through. The main issue was that the ruby code used Array.equal, which was checking if the selectors were the exact same object. This worked because they did a shallow copy of the array, which kept the same objects in both. When porting this, we did a deep comparison of the array, which gave different results. We clone our equivalent of the array, so we can't see if the objects are the same objects. However, we can just keep track of iteration indices and compare them to skip comparing an object against itself.
Fix 216_test_nested_sibling_extend and 217_test_parent_and_sibling_extend. trim was allowing extra duplicate selectors to come through. The main issue was that the ruby code used Array.equal, which was checking if the selectors were the exact same object. This worked because they did a shallow copy of the array, which kept the same objects in both. When porting this, we did a deep comparison of the array, which gave different results. We clone our equivalent of the array, so we can't see if the objects are the same objects. However, we can just keep track of iteration indices and compare them to skip comparing an object against itself.

technoAri/libsass,technoAri/libsass,panicinc/libsass,mikebarkas/libsass,webdev1001/libsass,saper/libsass,TBAPI-0KA/NSass,mikebarkas/libsass,FishingCactus/libsass,webdev1001/libsass,TBAPI-0KA/NSass,errorx666/libsass,khchanel/libsass,mtwebster/mint-libsass,admire93/libsass-python,panicinc/libsass,mtwebster/mint-libsass,FishingCactus/libsass,technoAri/libsass,saper/libsass,errorx666/libsass,saper/libsass,khchanel/libsass,FishingCactus/libsass,errorx666/libsass,errorx666/libsass,khchanel/libsass,khchanel/libsass,TBAPI-0KA/NSass,FishingCactus/libsass,saper/libsass,khchanel/libsass,panicinc/libsass,am11/libsass,webdev1001/libsass,dahlia/libsass-python,am11/libsass,mikebarkas/libsass,FishingCactus/libsass,saper/libsass,TBAPI-0KA/NSass,mtwebster/mint-libsass,admire93/libsass-python,panicinc/libsass,am11/libsass,mtwebster/mint-libsass,dahlia/libsass-python,am11/libsass,panicinc/libsass,TBAPI-0KA/NSass,technoAri/libsass,mikebarkas/libsass,mikebarkas/libsass,am11/libsass,webdev1001/libsass,webdev1001/libsass,technoAri/libsass,mtwebster/mint-libsass,TBAPI-0KA/NSass