Skip to content

test: Port tests from upstream#84

Merged
anonrig merged 2 commits intomainfrom
kdy1/port-upstream-tests
Mar 3, 2026
Merged

test: Port tests from upstream#84
anonrig merged 2 commits intomainfrom
kdy1/port-upstream-tests

Conversation

@kdy1
Copy link
Collaborator

@kdy1 kdy1 commented Mar 3, 2026

I used AI to port tests from https://github.com/ada-url/ada/tree/main/tests

I reviewed the whole changaes and I feel like it's good to go, but I'll verify one more time if tests are completely identical after opening the PR.

@kdy1
Copy link
Collaborator Author

kdy1 commented Mar 3, 2026

cc @anonrig. Is it fine to use AI for these kinds of tasks?
I think only one test case would be missing, but it's due to String constraint of serde_json.

The test case contains invalid utf-8 which cannot be deserialized as String because of the valid utf-8 constraint.

@anonrig
Copy link
Member

anonrig commented Mar 3, 2026

Is it fine to use AI for these kinds of tasks?

I think it's fine to use AI in any sense if there is a human in the loop

Copy link
Member

@anonrig anonrig left a comment

Choose a reason for hiding this comment

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

As part of this PR, can we also add this github workflow which will automatically update/open PR for web platform test(WPT) files, whenever they change on upstream?

https://github.com/ada-url/ada/blob/main/.github/workflows/wpt-updater.yml

@anonrig anonrig marked this pull request as ready for review March 3, 2026 21:41
@anonrig
Copy link
Member

anonrig commented Mar 3, 2026

I'll merge this PR and we can add it on a separate PR

@anonrig anonrig merged commit ae3bdea into main Mar 3, 2026
6 checks passed
@anonrig anonrig deleted the kdy1/port-upstream-tests branch March 3, 2026 21:42
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.

2 participants