[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:
@@ -19,7 +19,7 @@ describe('the board data', () => {
|
||||
for (const c of a.cells ?? []) expect(c).toMatchObject({ id: expect.any(String), width: expect.any(Number), height: expect.any(Number), prompt: expect.any(String) });
|
||||
}
|
||||
}
|
||||
expect(data.checklist).toHaveLength(10);
|
||||
expect(data.checklist).toHaveLength(12);
|
||||
expect(data.assets.every((a) => Number.isInteger(a.phase))).toBe(true);
|
||||
});
|
||||
|
||||
|
||||
@@ -18,15 +18,16 @@ describe('art/manifest.json', () => {
|
||||
expect(checkManifest(readManifest(), POINTS)).toEqual([]);
|
||||
});
|
||||
|
||||
it('asks for the 34 Phase 1 pictures: the rose sheet first, then her stages, care, moments and touch, the care things, chair, garden, letter and icons', () => {
|
||||
it('asks for the 46 Phase 1 pictures: the rose sheet first, then her stages, care, moments and touch, the care things, chair, garden, letter, icons, the gardener and her planet', () => {
|
||||
const m = readManifest();
|
||||
expect(m.assets[0]?.id).toBe('rose-sheet');
|
||||
const phase1 = m.assets.filter((a) => a.phase === 1);
|
||||
const pictures = phase1.flatMap((a: Asset) => (a.cells ? a.cells.map((c) => c.id) : [a.id]));
|
||||
expect(pictures).toHaveLength(34);
|
||||
expect(pictures).toHaveLength(46);
|
||||
expect(pictures).toEqual(expect.arrayContaining([
|
||||
'rose-bud', 'rose-full-bloom', 'rose-waiting', 'rose-tickled', 'rose-gentle', 'petal-folded', 'weeds-growing',
|
||||
'watering-can-pouring', 'garden-chair', 'garden-sunset', 'garden-night', 'letter-header', 'app-icon', 'app-icon-maskable', 'favicon-mark'
|
||||
'watering-can-pouring', 'garden-chair', 'garden-sunset', 'garden-night', 'letter-header', 'app-icon', 'app-icon-maskable', 'favicon-mark',
|
||||
'gardener-sheet', 'gardener-pour', 'gardener-pull', 'home-planet-day', 'home-planet-night'
|
||||
]));
|
||||
});
|
||||
|
||||
@@ -68,6 +69,7 @@ describe('checkManifest refuses', () => {
|
||||
['a Phase 1 picture listed after Phase 3', withAsset('lanterns-sheet', (a) => { a.phase = 1; }), /lanterns-sheet: phase 1 comes after phase 3; list the pictures in phase order/],
|
||||
['a picture with no subject', withAsset('garden-chair', (a) => { delete a.subject; }), /no subject/],
|
||||
['a picture nobody uses', withAsset('garden-chair', (a) => { a.usedBy = []; }), /usedBy is empty/],
|
||||
['an allowance for a line the shared list does not have', withAsset('gardener-sheet', (a) => { a.allow = ['a dragon']; }), /allows "a dragon", which is not in the shared avoid list/],
|
||||
['a name from the book in a prompt', withAsset('garden-chair', (a) => { a.subject = 'a chair for the Little Prince'; }), /"Little Prince" \(little-prince\)/],
|
||||
['a medical word in a cell', withAsset('rose-care-sheet', (a) => { (a.cells as { does: string }[])[0]!.does = 'thirsty, waiting to be healed'; }), /"healed" \(medical\)/],
|
||||
['the word the game never says, in the shared avoid list', (() => { const m = clone(readManifest()); (m.avoid as string[]).push('a lonely look'); return m; })(), /avoid list: "lonely"/]
|
||||
|
||||
@@ -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