Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency pointfreeco/swift-custom-dump to v1.1.2 #65

Merged
merged 1 commit into from
Dec 6, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 1, 2023

Mend Renovate

This PR contains the following updates:

Package Update Change
pointfreeco/swift-custom-dump minor 1.0.0 -> 1.1.2

Release Notes

pointfreeco/swift-custom-dump (pointfreeco/swift-custom-dump)

v1.1.2

Compare Source

What's Changed

New Contributors

Full Changelog: pointfreeco/swift-custom-dump@1.1.1...1.1.2

v1.1.1

Compare Source

What's Changed

Full Changelog: pointfreeco/swift-custom-dump@1.1.0...1.1.1

v1.1.0

Compare Source

What's Changed

  • Added: XCTAssertDifference for testing changes to values (https://github.com/pointfreeco/swift-custom-dump/pull/51).

    This function evaluates a given expression before and after a given operation and then compares the results. The comparison is done by invoking the changes closure with a mutable version of the initial value, and then asserting that the modifications made match the final value using XCTAssertNoDifference.

    For example, given a very simple counter structure, we can write a test against its incrementing functionality:

    struct Counter {
      var count = 0
      var isOdd = false
      mutating func increment() {
        self.count += 1
        self.isOdd.toggle()
      }
    }
    
    var counter = Counter()
    XCTAssertDifference(counter) {
      counter.increment()
    } changes: {
      $0.count = 1
      $0.isOdd = true
    }

    If changes does not exhaustively describe all changed fields, the assertion will fail.

    By omitting the operation you can write a "non-exhaustive" assertion against a value by describing just the fields you want to assert against in the changes closure:

    counter.increment()
    XCTAssertDifference(counter) {
      $0.count = 1
      // Don't need to further describe how `isOdd` has changed
    }
  • Infrastructure: README updates (thanks @​JacksonUtsch, https://github.com/pointfreeco/swift-custom-dump/pull/96).

  • Infrastructure: Enable Windows CI (thanks @​brianmichel, https://github.com/pointfreeco/swift-custom-dump/pull/99).

New Contributors

Full Changelog: pointfreeco/swift-custom-dump@1.0.0...1.1.0


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@Ryu0118 Ryu0118 merged commit 84c3bdb into main Dec 6, 2023
2 checks passed
@Ryu0118 Ryu0118 deleted the renovate/pointfreeco-swift-custom-dump-1.x branch December 6, 2023 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant