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

Support URL debug print #43

Merged
merged 1 commit into from
Feb 24, 2020
Merged

Support URL debug print #43

merged 1 commit into from
Feb 24, 2020

Conversation

sahara-ooga
Copy link
Collaborator

@sahara-ooga sahara-ooga commented Feb 24, 2020

Now debug-print string of URL instances is as we expected:

pretty.string(URL(string: "https://www.google.com/")!, debug: true)
// => URL("https://www.google.com/")

fixed #23 .

description of changes

  • add dependency of Foundation for NSURL.
  • add URL-specific implementation for Pretty.string() method.

Tests

It passes all unit test cases.

strip comment out.
add dependency of Foundation.
Comment on lines +64 to +65
XCTAssertEqual(pretty.string(URL(string: "https://www.google.com/")!, debug: true, pretty: false),
#"URL("https://www.google.com/")"#)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Strip comment-out, and revive a test case of debug: true

@sahara-ooga sahara-ooga marked this pull request as ready for review February 24, 2020 09:13
Copy link
Owner

@YusukeHosonuma YusukeHosonuma left a comment

Choose a reason for hiding this comment

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

Great work 👍
And congrats 1st contribution of implement feature.

@sahara-ooga sahara-ooga merged commit 88c0e41 into YusukeHosonuma:master Feb 24, 2020
@sahara-ooga sahara-ooga deleted the fix/url/implementation branch February 24, 2020 09:36
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.

Support URL
2 participants