Skip to content

test: Added compareString function#5

Merged
lemire merged 1 commit into
ada-url:mainfrom
mertcanaltin:dev-4
Jun 18, 2023
Merged

test: Added compareString function#5
lemire merged 1 commit into
ada-url:mainfrom
mertcanaltin:dev-4

Conversation

@mertcanaltin

@mertcanaltin mertcanaltin commented Jun 17, 2023

Copy link
Copy Markdown
Contributor

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

lemire commented Jun 18, 2023

Copy link
Copy Markdown
Member

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