1 Commits

Author SHA1 Message Date
b2039bf371 Solution 0x3363be2c74a52f6cd9663b810306764e1ea2b75da651754d869f750ffe3dc3e7
Some checks failed
elffuss/validation The automatic validation rejected the solution
T2T-Item: 0x3363be2c74a52f6cd9663b810306764e1ea2b75da651754d869f750ffe3dc3e7
T2T-Issue: 0xc12661ad1e924639ee5738cfaa57a23385d5f9849451aac6efabf58a185daf6d
2026-10-02 06:54:58 +00:00
2 changed files with 32 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
{
"schema": "elffuss-t2t/criteria@2",
"issue": 1,
"criteria": [
{
"index": 1,
"tests": [
"tests/acceptance/1/criteria.test.js::criterion 1"
]
},
{
"index": 2,
"tests": [
"tests/acceptance/1/criteria.test.js::criterion 2"
]
}
]
}

View File

@@ -0,0 +1,14 @@
import { test } from 'node:test'
import assert from 'node:assert/strict'
import { readFileSync } from 'node:fs'
const text = readFileSync(new URL('../../../README.md', import.meta.url), 'utf8') // the content of README.md
test('criterion 1', () => {
// README.md contains no link whose target is `bench/` unless that directory exists in the repository.
assert.strictEqual(text.includes('bench/'), false, 'README.md should not contain a link target to bench/ unless the directory exists.')
})
test('criterion 2', () => {
// README.md still names the licence of the dialogue benchmark it discusses.
assert.strictEqual(text.includes('license'), true, 'README.md should name the licence of the dialogue benchmark it discusses.')
})