def test_rsplit(self):
        assert evalpy('"".rsplit("-")') == "[ '' ]"
        assert evalpy('"abc".rsplit("-")') == "[ 'abc' ]"
        assert evalpy('"-".rsplit("-")') == "[ '', '' ]"
        assert evalpy('"abc-".rsplit("-")') == "[ 'abc', '' ]"
        assert evalpy('"-def".rsplit("-")') == "[ '', 'def' ]"
        assert evalpy('"abc-def".rsplit("-")') == "[ 'abc', 'def' ]"
        
        assert evalpy('"a a a".rsplit(" ", 0)') == "[ 'a a a' ]"
        assert evalpy('"a a a".rsplit(" ", 1)') == "[ 'a a', 'a' ]"
        assert evalpy('"a a a".rsplit(" ", 2)') == "[ 'a', 'a', 'a' ]"
        assert evalpy('"a a a".rsplit(" ", 3)') == "[ 'a', 'a', 'a' ]"
        assert evalpy('"a a a".rsplit(" ", 99)') == "[ 'a', 'a', 'a' ]"
        
        assert evalpy('"a a\\ta\\na".split()') == "[ 'a', 'a', 'a', 'a' ]"
        assert 'ValueError' in evalpy('try:\n  "aa".split("")\nexcept Exception as e:\n  e')
dataset/ETHPy150Open zoofIO/flexx/flexx/pyscript/tests/test_parser3.py/TestStrMethods.test_rsplit/original