Skip to content

Commit 9101fba

Browse files
committed
use correct error message on idna test
1 parent 152c198 commit 9101fba

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/wpt_url_tests.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,8 @@ TEST(wpt_url_tests, idna_test_v2_to_ascii) {
9999
}
100100
}
101101
} catch (simdjson::simdjson_error &error) {
102-
std::cerr << "JSON error: " << error.what() << " near "
103-
<< doc.current_location() << " in " << TOASCII_JSON << std::endl;
104-
FAIL();
102+
FAIL() << "JSON error: " << error.what() << " near "
103+
<< doc.current_location() << " in " << IDNA_TEST_V2 << std::endl;
105104
}
106105
SUCCEED();
107106
}

0 commit comments

Comments
 (0)