@@ -40,15 +40,17 @@ func TestIdWriteToReadFrom(t1 *testing.T) {
4040 }
4141}
4242
43- // A quoted-literal value fails doddish scanning into an object-id-shaped
44- // seq, but on a fresh (genres.Unknown) ObjectId, Set's error-fallback path
45- // re-routes to SetBlob, which itself falls back to wrapping the RAW string
46- // (quote characters included) in a single TokenTypeIdentifier token and
47- // unconditionally sets Genre to Blob -- producing a Blob object-id
48- // literally named `"quoted value"`, quotes and all, rather than erroring
49- // or stripping the quotes. This is surprising but is the actual, tested
50- // contract: quoting has no special meaning to Set on a genre-less
51- // ObjectId, it's just characters in a blob name.
43+ // A quoted-literal value scans as a single TokenTypeLiteral token, but
44+ // ScanExactlyOneSeqWithDotAllowedInIdenfierFromString still reports
45+ // ErrMoreThanOneSeq (CanScan() is true post-literal, before EOF is
46+ // observed) -- so Set's error-fallback path re-routes to SetBlob, which
47+ // wraps the RAW string (quote characters included) in a single
48+ // TokenTypeIdentifier token and unconditionally sets Genre to Blob,
49+ // producing a Blob object-id literally named `"quoted value"`, quotes
50+ // and all, rather than erroring or stripping the quotes. This is
51+ // surprising but is the actual, tested contract: quoting has no special
52+ // meaning to Set on a genre-less ObjectId, it's just characters in a
53+ // blob name.
5254func TestSetOnQuotedStringProducesLiteralBlobName (t1 * testing.T ) {
5355 t := ui .MakeT (t1 )
5456
0 commit comments