metanorma / pubid-ieee

PubID spec and implementation for IEEE deliverables
BSD 2-Clause "Simplified" License
1 stars 0 forks source link

Parse ISO identifiers using pubid-iso gem #56

Closed mico closed 2 years ago

mico commented 2 years ago

closes #46 related #25

ronaldtse commented 2 years ago

@mico the tests are failing, can you help check? Thanks!

ronaldtse commented 2 years ago

Strange. It's the ruby action that is failing... not sure when it resumes.

ronaldtse commented 2 years ago

@mico the only test failing now is a real one:

  1) Pubid::Ieee::Parser parse identifiers from examples files parses identifiers from pubid-parsed.txt behaves like parse identifiers from file parse identifiers from file
     Failure/Error: expect(subject).to parse(pub_id.split("#").first.strip.chomp)
       expected ROOT to be able to parse "IEEE Std C37.111-2013 (IEC 60255-24 Edition 2.0 2013-04)"
     Shared Example Group: "parse identifiers from file" called from ./spec/pubid_ieee/parser_spec.rb:54
     # ./spec/pubid_ieee/parser_spec.rb:46:in `block (5 levels) in <top (required)>'
     # ./spec/pubid_ieee/parser_spec.rb:44:in `each'
     # ./spec/pubid_ieee/parser_spec.rb:44:in `block (4 levels) in <top (required)>'

Seems that we can't parse the IEC PubID.