Skip to content

Commit

Permalink
Verifying node issue 51619 (#586)
Browse files Browse the repository at this point in the history
  • Loading branch information
lemire authored Jan 31, 2024
1 parent 1c89a9f commit 2e3db5f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/basic_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -402,10 +402,18 @@ TYPED_TEST(basic_tests, nodejs_51514) {
auto out = ada::parse<TypeParam>("http://1.1.1.256");
ASSERT_FALSE(out);
}

// https://github.com/nodejs/node/issues/51593
TYPED_TEST(basic_tests, nodejs_51593) {
auto out = ada::parse<TypeParam>("http://\u200b123.123.123.123");
ASSERT_TRUE(out);
ASSERT_EQ(out->get_href(), "http://123.123.123.123/");
SUCCEED();
}

// https://github.com/nodejs/node/issues/51619
TYPED_TEST(basic_tests, nodejs_51619) {
auto out = ada::parse<TypeParam>("https://0.0.0.0x100/");
ASSERT_FALSE(out);
SUCCEED();
}

0 comments on commit 2e3db5f

Please sign in to comment.