mercurial/HGCommandParserTests.st
changeset 807 ef00a1303f73
parent 804 e73451884939
child 808 ae9fdbfa8ba4
equal deleted inserted replaced
805:b890f24db9f0 807:ef00a1303f73
   720     self should:[
   720     self should:[
   721         (HGCommandParser on: 'hg: parse error: impossible time zone offset: 444444444
   721         (HGCommandParser on: 'hg: parse error: impossible time zone offset: 444444444
   722 ') parseErrorCommit ] raise: HGCommitError
   722 ') parseErrorCommit ] raise: HGCommitError
   723 
   723 
   724     "Created: / 17-10-2017 / 09:46:09 / jv"
   724     "Created: / 17-10-2017 / 09:46:09 / jv"
       
   725 !
       
   726 
       
   727 test_error_04
       
   728     "Test for Mercurial >= 4.3 that introduced new format of errors (see below).
       
   729      Sigh."
       
   730 
       
   731     self should:[ (HGCommandParser on: 'abort: unknown revision ''96DB65258808720D8D5EA6CB7A6A4D4F4E467325''!!\' withCRs) parseError ] 
       
   732          raise: HGUnknownRevisionError suchThat:[ :ex | ex parameter = '96DB65258808720D8D5EA6CB7A6A4D4F4E467325' asHGChangesetId ]
       
   733 
       
   734     "Created: / 08-02-2018 / 08:32:06 / Jan Vrany <jan.vrany@fit.cvut.cz>"
   725 ! !
   735 ! !
   726 
   736 
   727 !HGCommandParserTests methodsFor:'tests - misc'!
   737 !HGCommandParserTests methodsFor:'tests - misc'!
   728 
   738 
   729 test_misc_01
   739 test_misc_01