src/test/kotlin/de/uapcore/lightpit/types/CommitRefTest.kt

changeset 288
10324c383126
parent 282
c112fad21bf6
child 317
c2d7a9079853
--- a/src/test/kotlin/de/uapcore/lightpit/types/CommitRefTest.kt	Sun Jul 23 18:57:33 2023 +0200
+++ b/src/test/kotlin/de/uapcore/lightpit/types/CommitRefTest.kt	Tue Jul 25 18:19:04 2023 +0200
@@ -32,30 +32,33 @@
 class CommitRefTest {
 
     @Test
-    fun readCommitLog() {
+    fun parseCommitRefs() {
         assertContentEquals(
             listOf(
                 CommitRef("cf9f5982ddeb28c7f695dc547fe73abf5460016f", 50, "here we fix #50"),
                 CommitRef("cf9f5982ddeb28c7f695dc547fe73abf5460016f", 30, "here we fix #50"),
+                CommitRef("cf9f5982ddeb28c7f695dc547fe73abf5460016f", 80, "here we fix #50"),
                 CommitRef(
                     "ed7134e5f4ce278c4f62798fb9f96129be2b132b",
                     1337,
-                    "commit with a #non-ref, relates to #wrong ref but still fixes #1337"
+                    "commit with a #non-ref, relates to #wrong ref but still closes #1337"
                 ),
-                CommitRef("74d770da3c80c0c3fc1fb7e44fb710d665127dfe", 47, "a change with commitref in body"),
-                CommitRef("9a14e5628bdf2d578f3385d78022ddcaf23d1abb", 47, "add test file - relates to #47")
+                CommitRef("74d770da3c80c0c3fc1fb7e44fb710d665127dfe", 47, "a change with commitrefs only in body"),
+                CommitRef("74d770da3c80c0c3fc1fb7e44fb710d665127dfe", 13, "a change with commitrefs only in body"),
+                CommitRef("9a14e5628bdf2d578f3385d78022ddcaf23d1abb", 47, "add test file - closed #47 and fixed #90"),
+                CommitRef("9a14e5628bdf2d578f3385d78022ddcaf23d1abb", 90, "add test file - closed #47 and fixed #90")
             ),
-            parseCommitRefs(
-                """::lpitref:cf9f5982ddeb28c7f695dc547fe73abf5460016f:here we fix #50
+            parseCommitRefs("""
+::lpitref:cf9f5982ddeb28c7f695dc547fe73abf5460016f:here we fix #50
 
-and close #30
-::lpitref:ed7134e5f4ce278c4f62798fb9f96129be2b132b:commit with a #non-ref, relates to #wrong ref but still fixes #1337
-::lpitref:74d770da3c80c0c3fc1fb7e44fb710d665127dfe:a change with commitref in body
+and close #30 which blocked issue #80
+::lpitref:ed7134e5f4ce278c4f62798fb9f96129be2b132b:commit with a #non-ref, relates to #wrong ref but still closes #1337
+::lpitref:74d770da3c80c0c3fc1fb7e44fb710d665127dfe:a change with commitrefs only in body
 
 some more details
-fixes #47
+fixes #47 and relates to #13
 ::lpitref:d533c717dfecb8e4b993ca6c8760f1493bc834b6:no commitref
-::lpitref:9a14e5628bdf2d578f3385d78022ddcaf23d1abb:add test file - relates to #47
+::lpitref:9a14e5628bdf2d578f3385d78022ddcaf23d1abb:add test file - closed #47 and fixed #90
 """
             )
         )

mercurial