Skip to content

Commit

Permalink
chore: remove unsupported "Annotation" object before generating round…
Browse files Browse the repository at this point in the history
…-trip text
  • Loading branch information
ronaldtse committed Jan 7, 2025
1 parent ee27b4c commit b72b1e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/genericode_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def check_parsed_content(parsed, reparsed)

it "performs lossless round-trip conversion" do
original_to_test = JSON.parse(json_string).tap { |n| n.delete("Annotation") }.to_json
parsed = Genericode::CodeList.from_json(json_string)
parsed = Genericode::CodeList.from_json(original_to_test)
generated = Genericode::CodeList.to_json(parsed)
reparsed = Genericode::CodeList.from_json(generated)
reparsed_to_test = JSON.parse(reparsed.to_json(except: [:annotation])).to_json
Expand Down

0 comments on commit b72b1e3

Please sign in to comment.