Skip to content

Conversation

@satan87
Copy link
Contributor

@satan87 satan87 commented May 25, 2020

Description

Rotate function to handle multicolor

Motivation and Context

The extension wasn't pushed with the last commit

How Has This Been Tested?

Simulator only

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Non-functional change (Updating Documentation, CI automation, etc..)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

XCTAssertEqual(colors.rotate(for: 1), ColorGradient.whiteBlack)

}

Copy link

@AdrianBinDC AdrianBinDC May 25, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯 on unit tests. That's what was sorely lacking on master. Nice to see folks throwing them in there as they write code, rather than treating them as an afterthought.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Working on my TDD skills;) Small functions like that are perfect for it.

@@ -0,0 +1,22 @@
//
// File.swift

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Array+Extension.swift

@@ -0,0 +1,45 @@
//
// File.swift

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ArrayExtensionTests.swift

@AppPear AppPear merged commit 99b952f into AppPear:new-version May 26, 2020
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.

3 participants