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

Fix for property unquoting #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mkurc-ant
Copy link
Collaborator

This PR fixes property unquoting code. This allows storing empty properties instead of causing a crash.

@mkurc-ant
Copy link
Collaborator Author

Probably need to merge #5 first to get CI run on this one.

@mithro mithro requested a review from litghost December 15, 2020 15:17
@mithro
Copy link
Contributor

mithro commented Dec 15, 2020

Do this need a rebase so it gets GitHub actions running?

@mkurc-ant
Copy link
Collaborator Author

@mithro It does but #5 needs to be merged first.
Actually Travis did run for this PR.

@litghost
Copy link
Contributor

@mithro It does but #5 needs to be merged first.
Actually Travis did run for this PR.

Waiting on review for #5 from @mithro and/or @HackerFoo

@@ -243,8 +243,9 @@ def create_property_map(self, property_map, d):
entry.key = self.string_id(k)

if isinstance(v, str):
if v[0] == '"' and v[-1] == '"':
v = v[1:-1]
if len(v) >= 2:
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add some unit tests around this code?

Copy link
Contributor

Choose a reason for hiding this comment

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

Might be best to refactor the code first, and then write some tests on the separated function.

Copy link
Contributor

Choose a reason for hiding this comment

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

This PR still needs some tests?

@litghost
Copy link
Contributor

Please rebase

kowalewskijan pushed a commit to antmicro/python-fpga-interchange that referenced this pull request Apr 26, 2021
…_files

Add CMake file to build static library.
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.

3 participants