Skip to content

Conversation

@mertcanaltin
Copy link
Contributor

@mertcanaltin mertcanaltin commented Jun 17, 2023

The compareString function is a utility function used for comparing two strings and reporting any differences as test failures. It takes four parameters:

  • t is the testing.T object, which is used for reporting test failures.
  • expected is the expected string value.
  • actual is the actual string value.
  • message is an additional message to be included in the failure message.

If the expected and actual strings are not equal, the function uses the t.Errorf function to report a test failure, including the expected and actual values, along with the additional message.

issue: #4
fyi @anonrig @lemire

@lemire
Copy link
Member

lemire commented Jun 18, 2023

Merging

@lemire lemire merged commit 07b5df8 into ada-url:main Jun 18, 2023
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