[art] PlanetGarden: Her planet and the gardener on the board; the author's S2 and S6 recorded with their guards
This commit is contained in:
@@ -23,9 +23,9 @@ describe('STYLE.md', () => {
|
||||
}
|
||||
});
|
||||
|
||||
it('§7 has the ten review points, a point split over two lines read as one', () => {
|
||||
it('§7 has the twelve review points, a point split over two lines read as one', () => {
|
||||
const points = reviewPoints(readStyle());
|
||||
expect(points).toHaveLength(10);
|
||||
expect(points).toHaveLength(12);
|
||||
expect(points[8]).toBe("It reads as one young red-orange fox with a cream mask and a ringed tail, shy and gentle, and nothing like the book's sandy, long-eared fox.");
|
||||
expect(points[3]).toBe('Nothing from the book: no glass dome, screen, tiny planet, desert, child or scarf, and no look of its drawings.');
|
||||
});
|
||||
@@ -37,15 +37,16 @@ describe('STYLE.md', () => {
|
||||
});
|
||||
|
||||
describe('the prompts', () => {
|
||||
it('every one starts with STYLE.md §1 word for word, then says what to make: 35 cards and 66 one-at-a-time prompts', () => {
|
||||
expect(allPrompts).toHaveLength(35 + 66);
|
||||
it('every one starts with STYLE.md §1 word for word, then says what to make: 40 cards and 74 one-at-a-time prompts', () => {
|
||||
expect(allPrompts).toHaveLength(40 + 74);
|
||||
for (const p of allPrompts) expect(p.startsWith(style + '\n\nMake: ')).toBe(true);
|
||||
});
|
||||
|
||||
it('every one ends with the shared avoid list and its board id', () => {
|
||||
const shared = readManifest().avoid.join('; ');
|
||||
const m = readManifest();
|
||||
for (const a of data.assets) {
|
||||
expect(a.prompt).toContain(shared);
|
||||
const allowed = m.assets.find((x) => x.id === a.id)?.allow ?? [];
|
||||
expect(a.prompt).toContain(m.avoid.filter((l) => !allowed.includes(l)).join('; '));
|
||||
expect(a.prompt.endsWith(`\nBoard id: ${a.id}`)).toBe(true);
|
||||
for (const c of a.cells ?? []) expect(c.prompt.endsWith(`\nBoard id: ${c.id} (one picture of ${a.id})`)).toBe(true);
|
||||
}
|
||||
@@ -76,6 +77,17 @@ describe('the prompts', () => {
|
||||
for (const id of ['care-props-sheet', 'favicon-mark', 'letter-header']) expect(by.get(id)?.attach).toEqual([]);
|
||||
});
|
||||
|
||||
it("only the gardener's own pictures may show a person; every other prompt still says no people (STYLE.md S6)", () => {
|
||||
const people = 'people, hands or human faces';
|
||||
for (const a of data.assets) {
|
||||
const prompts = [a.prompt, ...(a.cells ?? []).map((c) => c.prompt)];
|
||||
const isGardener = a.attach.includes('gardener-sheet') || a.id === 'gardener-sheet';
|
||||
// The Avoid line only: §1 itself names the exception for every picture.
|
||||
for (const p of prompts) expect((p.split('\nAvoid: ')[1] ?? '').includes(people), a.id).toBe(!isGardener);
|
||||
}
|
||||
expect(data.assets.find((a) => a.id === 'gardener-poses-sheet')?.attach).toEqual(['gardener-sheet']);
|
||||
});
|
||||
|
||||
it('every rose prompt puts her face on the petals, never on a round head', () => {
|
||||
for (const a of data.assets.filter((x) => x.attach.includes('rose-sheet') || x.id === 'rose-sheet')) {
|
||||
for (const p of [a.prompt, ...(a.cells ?? []).map((c) => c.prompt)]) {
|
||||
|
||||
Reference in New Issue
Block a user