<reponame>Anteru/nsl<gh_stars>0
﻿from nsl.passes.ValidateSwizzle import ValidateSwizzleMask
import pytest

class TestValidateSwizzlePass:
    def testMixFail(self):
        with pytest.raises(Exception):
            ValidateSwizzleMask('xyrg')

    def testRepeatedWorks(self):
        ValidateSwizzleMask('rrrr')
﻿from nsl.passes.ValidateSwizzle import ValidateSwizzleMask
import pytest

class TestValidateSwizzlePass:
    def testMixFail(self):
        with pytest.raises(Exception):
            ValidateSwizzleMask('xyrg')

    def testRepeatedWorks(self):
        ValidateSwizzleMask('rrrr')