Solution 0xf55d65d86931c223eb17b73659594fa48310fc70cfa68a04f28e42c0127b2a18
Some checks failed
elffuss/validation The automatic validation rejected the solution

T2T-Item: 0xf55d65d86931c223eb17b73659594fa48310fc70cfa68a04f28e42c0127b2a18
T2T-Issue: 0xc12661ad1e924639ee5738cfaa57a23385d5f9849451aac6efabf58a185daf6d
This commit is contained in:
2026-10-02 07:23:07 +00:00
committed by elffuss-bot
parent 4dc1965d31
commit e3311e8e2d
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.')
})