Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add json test from #1206 #1270

Merged
merged 2 commits into from
Jan 3, 2025
Merged

Conversation

ccleva
Copy link
Contributor

@ccleva ccleva commented Jan 3, 2025

Thanks for contributing.

Description

Test case in PR #1206 description added as a unit test

Testing

Yes


Table table = new JsonReader().read(Source.fromString(json));

assertEquals(header, table.columnNames(), "Column order not preserved");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a bug could make them unequal for other reasons. The test name already tells us what we're testing

Suggested change
assertEquals(header, table.columnNames(), "Column order not preserved");
assertEquals(header, table.columnNames());

@benmccann benmccann merged commit a923338 into jtablesaw:master Jan 3, 2025
7 checks passed
@ccleva ccleva deleted the add_test_for_#1206 branch January 3, 2025 17:58
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.

2 participants