mercurial/HGCommandParserTests.st
changeset 458 52063f8ab1db
parent 444 8987b87a562a
child 466 ad91a31328a0
--- a/mercurial/HGCommandParserTests.st	Mon Sep 29 12:09:38 2014 +0100
+++ b/mercurial/HGCommandParserTests.st	Wed Oct 08 21:31:39 2014 +0100
@@ -130,6 +130,28 @@
     "Created: / 27-11-2012 / 19:00:30 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
+test_cmd_branches_02
+
+    | branches |
+
+    branches := (HGCommandParser on: 'invalid branchheads cache (visible): tip differs
+default                     5694:756610fa329d48cd8b225524016713485aefbb95
+jv                          5684:2c32b6c5d3543cd0381f9b346d62bfeabb95e6c6
+') parseCommandBranches.
+
+    self assert: branches size == 2.
+
+    self assert: branches first name = 'default'.
+    self assert: branches first isActive.
+    self assert: branches first isClosed not.
+
+    self assert: branches second name = 'jv'.
+    self assert: branches second isActive.
+    self assert: branches second isClosed not.
+
+    "Created: / 08-10-2014 / 20:39:33 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+!
+
 test_cmd_err_branches_01
 
     (HGCommandParser on: 'invalidating branch cache (tip differs)