KeyBridge / lib-openssrf

Reference implementation of the Standard Spectrum Resource Format (SSRF), defined in MCEB Pub 8 Version 3.1.0 (2014)
http://openssrf.org
Apache License 2.0
8 stars 8 forks source link

Fix FREQM serialisation. #4

Closed bradh closed 8 years ago

bradh commented 8 years ago

This resolves the problem where if FREQM is (for example) 0.1, it is marshalled to XML as 0. See corresponding test in lib-openssrf-test.

This PR takes a different (more declarative) approach to building the formatter which could have unintended consequences. I ran the test suite across the modified code, and it all passes, but would be worth a closer check. Seems worth the risk given the identified problem.