android_catalogue1-7 Exercise 1: Testing the Tag Rules ======================================================= Expected results: (a) Add "sci-fi" to an item and Save: the chip appears while editing; on the detail screen and in the list row the tag shows. The tag table now has one row. (b) On another item type "SCI-FI" and press Done: the chip reads "sci-fi" (the stored spelling), not "SCI-FI". While typing "sci" the suggestion "sci-fi" appeared. After Save there is still ONE sci-fi tag. (c) " retro games " becomes the chip "retro games": normaliseTagName trims and collapses the spaces. (d) Adding the same tag twice (also in a different case): the second add is ignored and the box is cleared. The chip row shows it once. (e) Cancel after adding a new tag chip: nothing was written, because tags are created only when Save runs. Open a new form and type the first letters of the cancelled tag: no suggestion appears. If (b) shows two chips, "sci-fi" and "SCI-FI": the canonical lookup in addTag compares against allTags, so check that allTags is being filled (the repository.tags collector in init) and that the comparison uses ignoreCase = true. If saving crashes with a constraint error about tag names: normaliseTagName is not being applied before the insert (getOrCreateTag must normalise its argument).