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

changeset 288
10324c383126
parent 282
c112fad21bf6
     1.1 --- a/src/test/kotlin/de/uapcore/lightpit/types/CommitRefTest.kt	Sun Jul 23 18:57:33 2023 +0200
     1.2 +++ b/src/test/kotlin/de/uapcore/lightpit/types/CommitRefTest.kt	Tue Jul 25 18:19:04 2023 +0200
     1.3 @@ -32,30 +32,33 @@
     1.4  class CommitRefTest {
     1.5  
     1.6      @Test
     1.7 -    fun readCommitLog() {
     1.8 +    fun parseCommitRefs() {
     1.9          assertContentEquals(
    1.10              listOf(
    1.11                  CommitRef("cf9f5982ddeb28c7f695dc547fe73abf5460016f", 50, "here we fix #50"),
    1.12                  CommitRef("cf9f5982ddeb28c7f695dc547fe73abf5460016f", 30, "here we fix #50"),
    1.13 +                CommitRef("cf9f5982ddeb28c7f695dc547fe73abf5460016f", 80, "here we fix #50"),
    1.14                  CommitRef(
    1.15                      "ed7134e5f4ce278c4f62798fb9f96129be2b132b",
    1.16                      1337,
    1.17 -                    "commit with a #non-ref, relates to #wrong ref but still fixes #1337"
    1.18 +                    "commit with a #non-ref, relates to #wrong ref but still closes #1337"
    1.19                  ),
    1.20 -                CommitRef("74d770da3c80c0c3fc1fb7e44fb710d665127dfe", 47, "a change with commitref in body"),
    1.21 -                CommitRef("9a14e5628bdf2d578f3385d78022ddcaf23d1abb", 47, "add test file - relates to #47")
    1.22 +                CommitRef("74d770da3c80c0c3fc1fb7e44fb710d665127dfe", 47, "a change with commitrefs only in body"),
    1.23 +                CommitRef("74d770da3c80c0c3fc1fb7e44fb710d665127dfe", 13, "a change with commitrefs only in body"),
    1.24 +                CommitRef("9a14e5628bdf2d578f3385d78022ddcaf23d1abb", 47, "add test file - closed #47 and fixed #90"),
    1.25 +                CommitRef("9a14e5628bdf2d578f3385d78022ddcaf23d1abb", 90, "add test file - closed #47 and fixed #90")
    1.26              ),
    1.27 -            parseCommitRefs(
    1.28 -                """::lpitref:cf9f5982ddeb28c7f695dc547fe73abf5460016f:here we fix #50
    1.29 +            parseCommitRefs("""
    1.30 +::lpitref:cf9f5982ddeb28c7f695dc547fe73abf5460016f:here we fix #50
    1.31  
    1.32 -and close #30
    1.33 -::lpitref:ed7134e5f4ce278c4f62798fb9f96129be2b132b:commit with a #non-ref, relates to #wrong ref but still fixes #1337
    1.34 -::lpitref:74d770da3c80c0c3fc1fb7e44fb710d665127dfe:a change with commitref in body
    1.35 +and close #30 which blocked issue #80
    1.36 +::lpitref:ed7134e5f4ce278c4f62798fb9f96129be2b132b:commit with a #non-ref, relates to #wrong ref but still closes #1337
    1.37 +::lpitref:74d770da3c80c0c3fc1fb7e44fb710d665127dfe:a change with commitrefs only in body
    1.38  
    1.39  some more details
    1.40 -fixes #47
    1.41 +fixes #47 and relates to #13
    1.42  ::lpitref:d533c717dfecb8e4b993ca6c8760f1493bc834b6:no commitref
    1.43 -::lpitref:9a14e5628bdf2d578f3385d78022ddcaf23d1abb:add test file - relates to #47
    1.44 +::lpitref:9a14e5628bdf2d578f3385d78022ddcaf23d1abb:add test file - closed #47 and fixed #90
    1.45  """
    1.46              )
    1.47          )

mercurial