eyeprolog 1.5.14 → 1.5.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/test/run-regression.mjs +6 -0
- package/the-art-of-eyeprolog.md +1556 -568
- package/tools/generate-predicate-reference.mjs +7 -12
package/package.json
CHANGED
package/test/run-regression.mjs
CHANGED
|
@@ -4794,6 +4794,12 @@ function documentationSyncCases() {
|
|
|
4794
4794
|
assertEqual(result.status, 0, 'exit status');
|
|
4795
4795
|
assertIncludes(result.stdout, 'predicate reference is up to date (518 predicates)', 'stdout');
|
|
4796
4796
|
assertEqual(result.stderr, '', 'stderr');
|
|
4797
|
+
|
|
4798
|
+
const book = fs.readFileSync(path.join(packageRoot, 'the-art-of-eyeprolog.md'), 'utf8');
|
|
4799
|
+
const section = between(book, '<!-- eyeprolog-predicate-reference:start -->', '<!-- eyeprolog-predicate-reference:end -->');
|
|
4800
|
+
assertEqual(section.split('\n').some((line) => line.trimStart().startsWith('|')), false, 'predicate reference avoids Markdown tables and horizontal overflow');
|
|
4801
|
+
assertEqual((section.match(/^- \*\*`/gm) ?? []).length, 518, 'one stacked reference entry per predicate');
|
|
4802
|
+
assertIncludes(section, 'wrap naturally on narrow screens without horizontal scrolling', 'responsive predicate reference layout');
|
|
4797
4803
|
},
|
|
4798
4804
|
},
|
|
4799
4805
|
{
|