Skip to content

<Description> : Adding NSAttributed string data extension.#379

Open
Khalian wants to merge 1 commit intomasterfrom
dataextensions
Open

<Description> : Adding NSAttributed string data extension.#379
Khalian wants to merge 1 commit intomasterfrom
dataextensions

Conversation

@Khalian
Copy link
Copy Markdown
Collaborator

@Khalian Khalian commented Feb 13, 2017

: feature/test

Checklist

  • New Extension
  • New Test
  • Changed more than one extension, but all changes are related
  • Trivial change (doesn't require changelog)

public var attributedString: NSAttributedString? {
do {
return try NSAttributedString(data: self, options:[NSDocumentTypeDocumentAttribute:NSHTMLTextDocumentType, NSCharacterEncodingDocumentAttribute: String.Encoding.utf8.rawValue], documentAttributes: nil)
} catch let error as NSError {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@Khalian Do we need to use NSError or we can use Swift's Error?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Good callout. I fixed that.

@EZSwiftExtensionsBot
Copy link
Copy Markdown

EZSwiftExtensionsBot commented Feb 13, 2017

3 Errors
🚫 EZSwiftExtensionsTest.UIColorTests: testBlueComponent, XCTAssertEqual failed: (“4607182418800017409”) is not equal to (“255”) -
EZSwiftExtensionsTests/UIColorTests.swift#L62
🚫 EZSwiftExtensionsTest.UIColorTests: testGreenComponent, XCTAssertEqual failed: (“4607182418800017409”) is not equal to (“255”) -
EZSwiftExtensionsTests/UIColorTests.swift#L57
🚫 EZSwiftExtensionsTest.UIColorTests: testRedComponent, XCTAssertEqual failed: (“4607182418800017409”) is not equal to (“255”) -
EZSwiftExtensionsTests/UIColorTests.swift#L52
2 Messages
📖 Executed 195 tests, with 3 failures (0 unexpected) in 6.887 (7.155) seconds
📖 Executed 178 tests, with 0 failures (0 unexpected) in 4.960 (5.161) seconds

Generated by 🚫 Danger

@Khalian
Copy link
Copy Markdown
Collaborator Author

Khalian commented Feb 13, 2017

UIColor Tests are blowing up for some reason.

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