TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Good language-agnostic test suites?

2 点作者 floitsch大约 2 年前
Are there any good language-agnostic test suites for common protocols and RFCs?<p>Any new programming language needs to implement libraries for things like JSON, Yaml, HTTP, MQTT, TLS, URL-parsing, etc.<p>Are there some good test-suites that explicitly test correct behavior for the most important RFCs? Maybe even an online service or docker container?<p>Is there an implementation that made these tests in such a way that they can be easily adapted for other programming languages?

1 comment

verdverm大约 2 年前
The Go compiler has a really interesting, black box testing tool called &quot;testscript&quot;<p>You can find an extracted, installable version here: <a href="https:&#x2F;&#x2F;github.com&#x2F;rogpeppe&#x2F;go-internal&#x2F;tree&#x2F;master&#x2F;cmd&#x2F;testscript">https:&#x2F;&#x2F;github.com&#x2F;rogpeppe&#x2F;go-internal&#x2F;tree&#x2F;master&#x2F;cmd&#x2F;test...</a><p>For test cases, I would look to libraries in any language that has them in an easy to copy format