Skip to content

test: add tests for read_sas format.sas and display_width XPT non-retention#804

Closed
LeonidasZhak wants to merge 1 commit into
tidyverse:mainfrom
LeonidasZhak:test/sas-format-attr-display-width
Closed

test: add tests for read_sas format.sas and display_width XPT non-retention#804
LeonidasZhak wants to merge 1 commit into
tidyverse:mainfrom
LeonidasZhak:test/sas-format-attr-display-width

Conversation

@LeonidasZhak

Copy link
Copy Markdown

Two small tests that document metadata behavior:

  1. read_sas format.sas attribute: Verifies that read_sas() correctly reads the format.sas attribute from sas7bdat files (e.g. $GENDER for gender, WORKSHOP for workshop). This complements the documentation in PR docs: document retained metadata for read_xpt/write_xpt (#719) #801.

  2. display_width not retained by XPT: Documents that the display_width attribute (used by SPSS) is NOT retained during write_xpt()read_xpt() round-trips. This clarifies a limitation that differs from SPSS behavior (where display_width does round-trip).

Relation to existing PRs:

Checks run locally:

  • devtools::test(filter = "haven-sas") — all 76 tests pass (73 original + 3 new)

…PT non-retention

- Test that read_sas() correctly reads format.sas attributes from sas7bdat files
- Test that display_width is NOT retained during XPT round-trips (documenting limitation)

Complements PR tidyverse#801 (metadata docs) and tidyverse#802 (trailing period test).
@LeonidasZhak

Copy link
Copy Markdown
Author

Withdrawing this small automated PR while I consolidate an oversized batch of contributions and reduce maintainer review burden. Sorry for the noise, and thank you for maintaining the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant