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

[BT-4418] FaunaParser Double values #19

Merged
merged 11 commits into from
Jan 31, 2024

Conversation

pchitolina-fauna
Copy link

Ticket(s): BT-4418

Merge after: #18

Problem

The current Fauna serialization module lacks a dedicated method to read values as Double.

Solution

Implemented specific logic for handling Fauna-specific token as Double.

Result

The addition of this capability enables the extraction and reading of tokens as Double, enhancing the functionality of the Fauna serialization module.

Testing

Run Utf8FaunaReaderTest.java


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@pchitolina-fauna pchitolina-fauna changed the title [BT-4418] Utf8FaunaReader Integer values [BT-4418] Utf8FaunaReader Double values Jan 23, 2024
@pchitolina-fauna pchitolina-fauna changed the base branch from dev to feature/BT-4418-utf8faunareader_read_int January 24, 2024 12:53
@pchitolina-fauna pchitolina-fauna changed the base branch from feature/BT-4418-utf8faunareader_read_int to feature/BT-4418-utf8faunareader_read_date_and_time January 24, 2024 12:54
…o feature/BT-4418-utf8faunareader_read_double

# Conflicts:
#	faunaJava/src/test/java/com/fauna/serialization/FaunaParserTest.java
@pchitolina-fauna pchitolina-fauna changed the title [BT-4418] Utf8FaunaReader Double values [BT-4418] FaunaParser Double values Jan 24, 2024
…o feature/BT-4418-utf8faunareader_read_double

# Conflicts:
#	faunaJava/src/test/java/com/fauna/serialization/FaunaParserTest.java
Copy link
Collaborator

@pnwpedro pnwpedro left a comment

Choose a reason for hiding this comment

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

Please make sure you get the rest of these in your open PRs.

@pnwpedro pnwpedro changed the base branch from feature/BT-4418-utf8faunareader_read_date_and_time to dev January 30, 2024 09:05
Comment on lines 168 to 176
String invalidJson = "{\"@double\": \"abc\"}";
InputStream invalidInputStream = new ByteArrayInputStream(invalidJson.getBytes());
FaunaParser invalidReader = new FaunaParser(invalidInputStream);

expectedTokens = List.of(
Map.entry(FaunaTokenType.DOUBLE, "abc")
);

assertReader(invalidReader, expectedTokens, true);
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be a separate test.

@pchitolina-fauna pchitolina-fauna merged commit 7f01106 into dev Jan 31, 2024
1 check passed
@pchitolina-fauna pchitolina-fauna deleted the feature/BT-4418-utf8faunareader_read_double branch January 31, 2024 14:29
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