Skip to content
This repository has been archived by the owner on Jan 27, 2025. It is now read-only.

Add Fix functions from Catmandu Cheat Sheet. #103

Merged
merged 36 commits into from
Jan 26, 2022
Merged

Conversation

blackwinter
Copy link
Member

@blackwinter blackwinter commented Dec 23, 2021

I've opted for the non-destructive approach w.r.t. Values. I don't think we're consistent as to when we modify an existing value and when we create a new one. Let me know if you have a preference - or if I'm mistaken and there's indeed a system to it ;)

Omitted Fix functions from the cheat sheet:

  • assoc()
  • diassoc()
  • compact() (not applicable)
  • flatten()
  • from_json()
  • to_json()
  • uri_decode()
  • uri_encode()

Resolves #100.

@blackwinter blackwinter self-assigned this Dec 23, 2021
@blackwinter blackwinter requested a review from fsteeg January 11, 2022 15:24
@blackwinter blackwinter assigned fsteeg and unassigned blackwinter Jan 11, 2022
@blackwinter blackwinter marked this pull request as ready for review January 11, 2022 15:24
blackwinter added a commit that referenced this pull request Jan 11, 2022
Copy link
Member

@fsteeg fsteeg left a comment

Choose a reason for hiding this comment

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

🙌

@fsteeg fsteeg assigned blackwinter and unassigned fsteeg Jan 13, 2022
This was referenced Jan 14, 2022
@blackwinter
Copy link
Member Author

@fsteeg: Do you want to re-review now that there have been substantial changes based on the discussion in #100?

@@ -39,6 +39,8 @@
private static final String CSV_MAP = "src/test/resources/org/metafacture/metafix/maps/test.csv";
private static final String TSV_MAP = "src/test/resources/org/metafacture/metafix/maps/test.tsv";

private static final String LOOKUP = "lookup('title.*',";
Copy link
Member

Choose a reason for hiding this comment

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

Minor: for tests, I often like to keep redundancies if they add clarity, to get kind of contained test cases.

Copy link
Member Author

Choose a reason for hiding this comment

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

Well, what can I say? Got overpowered by my OCD ;)

Catmandu operates on both arrays and hashes.
@blackwinter blackwinter merged commit 1159022 into master Jan 26, 2022
@blackwinter blackwinter deleted the 100-addFixFunctions branch January 26, 2022 10:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add more Fix functions.
2 participants