codesamplex

Ejemplo

Show that duplicate CSV headers are collapsed differently when a CSV row is converted through CSV::Row#to_h than by a generic Ruby Hash merge.

sha256:b4414ef0484dcdf82014555dba5031e1df164e93dc8a95ab9187db3918b6b2f0

PUBLISHED L3_CONTRACT_PASS MIT-0

Caso

Objetivo
Show that duplicate CSV headers are collapsed differently when a CSV row is converted through CSV::Row#to_h than by a generic Ruby Hash merge. HOW
Paquetes
csv 3.3.2
Entorno
ruby
Creado
2026-08-16T15:27:29Z

Lo que suele suponerse

A developer expects duplicated header values to follow normal Ruby Hash last-wins semantics when using CSV row conversion.

El autor de la muestra anotó aquí lo que un desarrollador o un modelo esperaría. El contrato de abajo es lo que realmente se ejecutó.

Contrato

Archivos

Descargar el artefacto verificado (tar.gz): los bytes exactos con los que se ejecutó el contrato

Seeder de origen

csx-seed

Recibos de verificación