<reponame>jeff-a-holland/python_class_2021_B2
#!/Users/jeff/.pyenv/shims/python

from solution import str_range

def test_same_start_end():
    r = str_range('a', 'a')
    assert iter(r) == r
    assert ''.join(list(r)) == 'a'

def test_simple():
    r = str_range('a', 'c')
    assert ''.join(list(r)) == 'abc'

def test_simple_with_step():
    r = str_range('a', 'c', 2)
    assert ''.join(list(r)) == 'ac'

def test_simple_with_negativestep():
    r = str_range('c', 'a', -2)
    assert ''.join(list(r)) == 'ca'

def test_hebrew():
    r = str_range('א', 'ז', 2)
    assert ''.join(list(r)) == 'אגהז'

#!/Users/jeff/.pyenv/shims/python

from solution import str_range

def test_same_start_end():
    r = str_range('a', 'a')
    assert iter(r) == r
    assert ''.join(list(r)) == 'a'

def test_simple():
    r = str_range('a', 'c')
    assert ''.join(list(r)) == 'abc'

def test_simple_with_step():
    r = str_range('a', 'c', 2)
    assert ''.join(list(r)) == 'ac'

def test_simple_with_negativestep():
    r = str_range('c', 'a', -2)
    assert ''.join(list(r)) == 'ca'

def test_hebrew():
    r = str_range('א', 'ז', 2)
    assert ''.join(list(r)) == 'אגהז'
#!/Users/jeff/.pyenv/shims/python