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

Define biginteger, bigdecimal, byte, short, long, double for all implementations #42

Merged
merged 21 commits into from
Jan 4, 2022

Conversation

aslakhellesoy
Copy link
Contributor

@aslakhellesoy aslakhellesoy commented Nov 8, 2021

Description

Implement the numeric precision parameter types from the Java implementation in other implementations:

  • biginteger
  • bigdecimal
  • byte
  • short
  • long
  • double

Motivation & context

In @cucumber/language-service (written in TypeScript) we need to construct a registry with types that match any implementation. If we don't do that, an error will be thrown when we encounter a parameter type such as {double} when we process Cucumber Expressions from Java. Therefore, all implementations must have the same built-in parameter types.

Moreover, this improves numeric type support for all implementations.

Type of change

  • New feature (non-breaking change which adds new behaviour)

@aslakhellesoy aslakhellesoy changed the title Extract ParameterTypeRegistry#defineDefaultParameterTypes() Define biginteger, bigdecimal, byte, short, long, double for all implementations Jan 4, 2022
@aslakhellesoy aslakhellesoy marked this pull request as ready for review January 4, 2022 11:04
Copy link
Contributor

@aurelien-reeves aurelien-reeves left a comment

Choose a reason for hiding this comment

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

ts and ruby looks good
for jvm and go, other reviewers more confident with those languages would be welcome :D

…ressionTest.java

Co-authored-by: Aurélien Reeves <aurelien.reeves@smartbear.com>
@aslakhellesoy aslakhellesoy enabled auto-merge (squash) January 4, 2022 13:09
@aslakhellesoy aslakhellesoy merged commit c1915d9 into main Jan 4, 2022
@aslakhellesoy aslakhellesoy deleted the define-default-parameter-types branch January 4, 2022 13:12
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