def set_sels(self, sels):
        """
        Enables adding selections to the buffer text using a minilanguage:

        S = add empty sel before S and delete S
        x = add empty sel before x
        v = add sel from before the first 'v' to after the last contiguous 'v'
        """
        self.view.sel().clear()
        self.view.sel().add_all(sels)
        return

        if test.args['mode'] in ('mode_normal', 'mode_internal_normal'):
            regions = self.view.find_all(r'$', sublime.LITERAL)
            if not regions:
                # TODO(guillermooo): report this? we should expect some regions
                return
            self.view.sel().add_all(regions)
            self.view.run_command('right_delete')
            return

        if test.args ['mode'] == 'mode_visual':
            visual_mode_regs = self.view.find_all(r'v+')
            for vmr in visual_mode_regs:
                self.view.sel().add(vmr)

            if 0 > len(self.view.sel()):
                return

            visual_mode_regs = self.view.find_all(r'S')
            for vmr in visual_mode_regs:
                self.view.sel().add(sublime.Region(vmr.a))
                self.view.run_command('right_delete')
dataset/ETHPy150Open guillermooo/Vintageous/tests/cmd_tester.py/ViCmdTester.set_sels/swapped operands of `>`