1. Yuya Nishihara
  2. thg-qt-mq

Commits

Yuya Nishihara  committed cc9e0b9

more assertion

  • Participants
  • Parent commits cdf305f
  • Branches default

Comments (0)

Files changed (1)

File graph-index-lazyload.diff

View file
  def buildlinecolortable(grapher):
      table = {}  # rev: [linecolor, ...]
      for node in grapher:
-@@ -106,3 +129,26 @@ def test_linecolor_filelog():
+@@ -106,3 +129,28 @@ def test_linecolor_filelog():
          0: [],
          }
      assert_equal(expectedtable, actualtable)
 +    assert_equal(20, graphobj.index(0))
 +    assert_equal(21, len(graphobj))
 +
++    assert_equal(-1, graphobj.index(20))  # unknown
++
 +def test_graph_index_unapplied_patches():
 +    repo = openthgrepo('20patches')
 +    grapher = graph.revision_grapher(repo)