コード例 #1
0
ファイル: test_vim.py プロジェクト: Nodd/spyder.vim
 def test_two_chars_command(self):
     groups = RE_VIM_PREFIX.match("dd").groups()
     assert groups == ("", "dd", "")
コード例 #2
0
ファイル: test_vim.py プロジェクト: CermakM/spyder-vim
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", "")
コード例 #3
0
ファイル: test_vim.py プロジェクト: Nodd/spyder.vim
 def test_two_chars_command(self):
     groups = RE_VIM_PREFIX.match("dd").groups()
     assert groups == ("", "dd", "")
コード例 #4
0
ファイル: test_vim.py プロジェクト: CermakM/spyder-vim
def test_two_chars_command():
    """Test that prefix regex matches valid pairs of prefixes."""
    groups = RE_VIM_PREFIX.match("dd").groups()
    assert groups == ("", "dd", "")
コード例 #5
0
ファイル: test_vim.py プロジェクト: CermakM/spyder-vim
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
コード例 #6
0
ファイル: test_vim.py プロジェクト: Nodd/spyder.vim
 def test_three_chars_repeat(self):
     groups = RE_VIM_PREFIX.match("21D").groups()
     assert groups == ("21", "D", "")
コード例 #7
0
ファイル: test_vim.py プロジェクト: Nodd/spyder.vim
 def test_prefix_no_match(self):
     match = RE_VIM_PREFIX.match("d")
     assert match is None
コード例 #8
0
ファイル: test_vim.py プロジェクト: spyder-ide/spyder.vim
def test_prefix_no_match():
    """Test that prefix regex does not match invalid prefix."""
    match = RE_VIM_PREFIX.match("d")
    assert match is None
コード例 #9
0
ファイル: test_vim.py プロジェクト: spyder-ide/spyder.vim
def test_one_char():
    """Test that prefix regex matches valid single prefix."""
    groups = RE_VIM_PREFIX.match("D").groups()
    assert groups == ("", "D", "")
コード例 #10
0
ファイル: test_vim.py プロジェクト: Nodd/spyder.vim
 def test_three_chars_with_zero_repeat(self):
     groups = RE_VIM_PREFIX.match("20D").groups()
     assert groups == ("20", "D", "")
コード例 #11
0
ファイル: test_vim.py プロジェクト: Nodd/spyder.vim
 def test_prefix_no_match(self):
     match = RE_VIM_PREFIX.match("d")
     assert match is None
コード例 #12
0
ファイル: test_vim.py プロジェクト: Nodd/spyder.vim
 def test_three_chars_repeat(self):
     groups = RE_VIM_PREFIX.match("21D").groups()
     assert groups == ("21", "D", "")
コード例 #13
0
ファイル: test_vim.py プロジェクト: Nodd/spyder.vim
 def test_number_and_zero_no_match(self):
     match = RE_VIM_PREFIX.match("10")
     assert match is None
コード例 #14
0
ファイル: test_vim.py プロジェクト: Nodd/spyder.vim
 def test_number_no_match(self):
     match = RE_VIM_PREFIX.match("11")
     assert match is None
コード例 #15
0
ファイル: test_vim.py プロジェクト: Nodd/spyder.vim
 def test_number_no_match(self):
     match = RE_VIM_PREFIX.match("11")
     assert match is None
コード例 #16
0
ファイル: test_vim.py プロジェクト: spyder-ide/spyder.vim
def test_two_chars_command():
    """Test that prefix regex matches valid pairs of prefixes."""
    groups = RE_VIM_PREFIX.match("dd").groups()
    assert groups == ("", "dd", "")
コード例 #17
0
ファイル: test_vim.py プロジェクト: Nodd/spyder.vim
 def test_number_and_zero_no_match(self):
     match = RE_VIM_PREFIX.match("10")
     assert match is None
コード例 #18
0
ファイル: test_vim.py プロジェクト: spyder-ide/spyder.vim
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
コード例 #19
0
ファイル: test_vim.py プロジェクト: Nodd/spyder.vim
 def test_three_chars_with_zero_repeat(self):
     groups = RE_VIM_PREFIX.match("20D").groups()
     assert groups == ("20", "D", "")
コード例 #20
0
ファイル: test_vim.py プロジェクト: spyder-ide/spyder.vim
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
コード例 #21
0
ファイル: test_vim.py プロジェクト: CermakM/spyder-vim
def test_one_char():
    """Test that prefix regex matches valid single prefix."""
    groups = RE_VIM_PREFIX.match("D").groups()
    assert groups == ("", "D", "")
コード例 #22
0
ファイル: test_vim.py プロジェクト: spyder-ide/spyder.vim
def test_three_chars_repeat():
    """Test that prefix regex matches three prefix combinations."""
    groups = RE_VIM_PREFIX.match("21D").groups()
    assert groups == ("21", "D", "")
コード例 #23
0
ファイル: test_vim.py プロジェクト: CermakM/spyder-vim
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
コード例 #24
0
ファイル: test_vim.py プロジェクト: spyder-ide/spyder.vim
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", "")
コード例 #25
0
ファイル: test_vim.py プロジェクト: CermakM/spyder-vim
def test_three_chars_repeat():
    """Test that prefix regex matches three prefix combinations."""
    groups = RE_VIM_PREFIX.match("21D").groups()
    assert groups == ("21", "D", "")
コード例 #26
0
ファイル: test_vim.py プロジェクト: Nodd/spyder.vim
 def test_one_char(self):
     groups = RE_VIM_PREFIX.match("D").groups()
     assert groups == ("", "D", "")
コード例 #27
0
ファイル: test_vim.py プロジェクト: CermakM/spyder-vim
def test_prefix_no_match():
    """Test that prefix regex does not match invalid prefix."""
    match = RE_VIM_PREFIX.match("d")
    assert match is None
コード例 #28
0
ファイル: test_vim.py プロジェクト: Nodd/spyder.vim
 def test_one_char(self):
     groups = RE_VIM_PREFIX.match("D").groups()
     assert groups == ("", "D", "")