News for hackers. Stuff that matters.
Re:Linux 6.0 arrives with performance improvements and more ... by mihaigalos on Tuesday August 16, 2022 @05:38AM (#32480853)
> code isn't a specification.

Code in the form of a test is.

It shows how you can interact with the system/component/unit under test.

Re:Linux 6.0 arrives with performance improvements and more ... by lionkor on Thursday August 18, 2022 @01:20AM (#32505603)
Tell me how code in the form of tests is not incredibly specific to a version and implementation of the thing youre testing?

A specification should specify behavior, edge cases, time complexity, possible pitfalls, etc.

Basically anything that is guaranteed (by the specification). A test may test a quirk of the implementation.

Re:Linux 6.0 arrives with performance improvements and more ... by klysm on Tuesday August 16, 2022 @08:33AM (#32481965)
A test is not a specification unless it covers every possible input and output. That’s only possible in a very small set of cases.