Comment 1 for bug 1132315

Revision history for this message
reckoner (reckoner) wrote : Re: snippet's initial cursor position makes it fail

Here's the test.py output:

---
======================================================================
FAIL: runTest (test.ParseSnippets_MultiWord_UnmatchedContainer)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\vim\vimfiles\UltiSnips-2.2\test.py", line 239, in runTest
    def runTest(self): self.check_output()
  File "C:\vim\vimfiles\UltiSnips-2.2\test.py", line 237, in check_output
    self.assertEqual(self.output, wanted)
AssertionError: " --- some text before --- \n\n\tnv snip\t\n\n --- some text aft
er --- \nUltiSnips: Invalid multiword trigger: '!inv snip/' in test_file(2)" !=
" --- some text before --- \n\ninv snip\t\n\n --- some text after --- \nUltiSnip
s: Invalid multiword trigger: '!inv snip/' in test_file(2)"

======================================================================
FAIL: runTest (test.PythonCode_IndentNoetSwTs)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\vim\vimfiles\UltiSnips-2.2\test.py", line 239, in runTest
    def runTest(self): self.check_output()
  File "C:\vim\vimfiles\UltiSnips-2.2\test.py", line 237, in check_output
    self.assertEqual(self.output, wanted)
AssertionError: ' --- some text before --- \n\n hi\n i1\n i2\ni0\n i1
\n End\n\n --- some text after --- ' != ' --- some text before --- \n\n hi\n
   i1\n\t i2\ni0\n i1\n End\n\n --- some text after --- '

======================================================================
FAIL: runTest (test.PythonCode_MultiAppendShift)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\vim\vimfiles\UltiSnips-2.2\test.py", line 239, in runTest
    def runTest(self): self.check_output()
  File "C:\vim\vimfiles\UltiSnips-2.2\test.py", line 237, in check_output
    self.assertEqual(self.output, wanted)
AssertionError: ' --- some text before --- \n\n\n hi\n i1\n
 i1\n i2\ni0\n i3\n End\n\n --- som
e text after --- ' != ' --- some text before --- \n\n\n\thi\n\ti1\n\ti1\n\t\ti2\
ni0\n\t\t\ti3\n\tEnd\n\n --- some text after --- '

======================================================================
FAIL: runTest (test.PythonCode_MultiAppendShiftMethods)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\vim\vimfiles\UltiSnips-2.2\test.py", line 239, in runTest
    def runTest(self): self.check_output()
  File "C:\vim\vimfiles\UltiSnips-2.2\test.py", line 237, in check_output
    self.assertEqual(self.output, wanted)
AssertionError: ' --- some text before --- \n\n\n hi\n i1\n
 i1\n i2\ni0\n i3\n End\n\n --- som
e text after --- ' != ' --- some text before --- \n\n\n\thi\n\ti1\n\ti1\n\t\ti2\
ni0\n\t\t\ti3\n\tEnd\n\n --- some text after --- '

======================================================================
FAIL: runTest (test.PythonCode_ResetIndent)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\vim\vimfiles\UltiSnips-2.2\test.py", line 239, in runTest
    def runTest(self): self.check_output()
  File "C:\vim\vimfiles\UltiSnips-2.2\test.py", line 237, in check_output
    self.assertEqual(self.output, wanted)
AssertionError: ' --- some text before --- \n\n\n hi\n i1\n
         i2\n i1\ni0\n i1\n End\n\n --- some text after ---
 ' != ' --- some text before --- \n\n\n\thi\n\ti1\n\t\ti2\n\ti1\ni0\n\ti1\n\tEnd
\n\n --- some text after --- '

----------------------------------------------------------------------
Ran 430 tests in 1204.550s