Ejemplo n.º 1
0
 def test_two_chars_command(self):
     groups = RE_VIM_PREFIX.match("dd").groups()
     assert groups == ("", "dd", "")
Ejemplo n.º 2
0
def test_three_chars_with_zero_repeat():
    """Test that prefix regex matches three combinations that contain 0."""
    groups = RE_VIM_PREFIX.match("20D").groups()
    assert groups == ("20", "D", "")
Ejemplo n.º 3
0
 def test_two_chars_command(self):
     groups = RE_VIM_PREFIX.match("dd").groups()
     assert groups == ("", "dd", "")
Ejemplo n.º 4
0
def test_two_chars_command():
    """Test that prefix regex matches valid pairs of prefixes."""
    groups = RE_VIM_PREFIX.match("dd").groups()
    assert groups == ("", "dd", "")
Ejemplo n.º 5
0
def test_number_and_zero_no_match():
    """Test that prefix regex does not match 10 combination."""
    match = RE_VIM_PREFIX.match("10")
    assert match is None
Ejemplo n.º 6
0
 def test_three_chars_repeat(self):
     groups = RE_VIM_PREFIX.match("21D").groups()
     assert groups == ("21", "D", "")
Ejemplo n.º 7
0
 def test_prefix_no_match(self):
     match = RE_VIM_PREFIX.match("d")
     assert match is None
Ejemplo n.º 8
0
def test_prefix_no_match():
    """Test that prefix regex does not match invalid prefix."""
    match = RE_VIM_PREFIX.match("d")
    assert match is None
Ejemplo n.º 9
0
def test_one_char():
    """Test that prefix regex matches valid single prefix."""
    groups = RE_VIM_PREFIX.match("D").groups()
    assert groups == ("", "D", "")
Ejemplo n.º 10
0
 def test_three_chars_with_zero_repeat(self):
     groups = RE_VIM_PREFIX.match("20D").groups()
     assert groups == ("20", "D", "")
Ejemplo n.º 11
0
 def test_prefix_no_match(self):
     match = RE_VIM_PREFIX.match("d")
     assert match is None
Ejemplo n.º 12
0
 def test_three_chars_repeat(self):
     groups = RE_VIM_PREFIX.match("21D").groups()
     assert groups == ("21", "D", "")
Ejemplo n.º 13
0
 def test_number_and_zero_no_match(self):
     match = RE_VIM_PREFIX.match("10")
     assert match is None
Ejemplo n.º 14
0
 def test_number_no_match(self):
     match = RE_VIM_PREFIX.match("11")
     assert match is None
Ejemplo n.º 15
0
 def test_number_no_match(self):
     match = RE_VIM_PREFIX.match("11")
     assert match is None
Ejemplo n.º 16
0
def test_two_chars_command():
    """Test that prefix regex matches valid pairs of prefixes."""
    groups = RE_VIM_PREFIX.match("dd").groups()
    assert groups == ("", "dd", "")
Ejemplo n.º 17
0
 def test_number_and_zero_no_match(self):
     match = RE_VIM_PREFIX.match("10")
     assert match is None
Ejemplo n.º 18
0
def test_number_no_match():
    """Test that prefix regex does not match invalid number combinations."""
    match = RE_VIM_PREFIX.match("11")
    assert match is None
Ejemplo n.º 19
0
 def test_three_chars_with_zero_repeat(self):
     groups = RE_VIM_PREFIX.match("20D").groups()
     assert groups == ("20", "D", "")
Ejemplo n.º 20
0
def test_number_and_zero_no_match():
    """Test that prefix regex does not match 10 combination."""
    match = RE_VIM_PREFIX.match("10")
    assert match is None
Ejemplo n.º 21
0
def test_one_char():
    """Test that prefix regex matches valid single prefix."""
    groups = RE_VIM_PREFIX.match("D").groups()
    assert groups == ("", "D", "")
Ejemplo n.º 22
0
def test_three_chars_repeat():
    """Test that prefix regex matches three prefix combinations."""
    groups = RE_VIM_PREFIX.match("21D").groups()
    assert groups == ("21", "D", "")
Ejemplo n.º 23
0
def test_number_no_match():
    """Test that prefix regex does not match invalid number combinations."""
    match = RE_VIM_PREFIX.match("11")
    assert match is None
Ejemplo n.º 24
0
def test_three_chars_with_zero_repeat():
    """Test that prefix regex matches three combinations that contain 0."""
    groups = RE_VIM_PREFIX.match("20D").groups()
    assert groups == ("20", "D", "")
Ejemplo n.º 25
0
def test_three_chars_repeat():
    """Test that prefix regex matches three prefix combinations."""
    groups = RE_VIM_PREFIX.match("21D").groups()
    assert groups == ("21", "D", "")
Ejemplo n.º 26
0
 def test_one_char(self):
     groups = RE_VIM_PREFIX.match("D").groups()
     assert groups == ("", "D", "")
Ejemplo n.º 27
0
def test_prefix_no_match():
    """Test that prefix regex does not match invalid prefix."""
    match = RE_VIM_PREFIX.match("d")
    assert match is None
Ejemplo n.º 28
0
 def test_one_char(self):
     groups = RE_VIM_PREFIX.match("D").groups()
     assert groups == ("", "D", "")