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

test: Added compareString function #5

Merged
merged 1 commit into from
Jun 18, 2023
Merged

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
2 checks passed
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.

None yet

3 participants