From cfa11372cbcbb5f4553f3dcd8897d5f5207c6507 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Wed, 18 Jul 2018 16:41:09 +0200 Subject: implement label op+command --- tests/operation_iterator_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/operation_iterator_test.go b/tests/operation_iterator_test.go index 66e1ca1b..bcbcfb08 100644 --- a/tests/operation_iterator_test.go +++ b/tests/operation_iterator_test.go @@ -17,6 +17,7 @@ var ( setTitleOp = operations.NewSetTitleOp(rene, "title2") addCommentOp = operations.NewAddCommentOp(rene, "message2") setStatusOp = operations.NewSetStatusOp(rene, bug.ClosedStatus) + labelChangeOp = operations.NewLabelChangeOperation(rene, []bug.Label{"added"}, []bug.Label{"removed"}) mockRepo = repository.NewMockRepoForTest() ) @@ -30,7 +31,9 @@ func TestOpIterator(t *testing.T) { bug1.Append(createOp) bug1.Append(setTitleOp) + bug1.Append(addCommentOp) bug1.Append(setStatusOp) + bug1.Append(labelChangeOp) bug1.Commit(mockRepo) bug1.Append(setTitleOp) @@ -50,7 +53,7 @@ func TestOpIterator(t *testing.T) { counter++ } - if counter != 9 { + if counter != 11 { t.Fatalf("Wrong count of value iterated (%d instead of 8)", counter) } } -- cgit