Hello specs fans,

I have two records, like so:

nnnnnnn
CCCCCCCmmmmmmmCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC

where nnnnnnn is a right justified integer and mmmmmmm is either that, or
blanks (which should be considered the equivalent of zero). C is an
arbitrary character.

I want to emit the just the second record, with the mmmmmmm replaced with
the sum of nnnnnnn and mmmmmmm (or left alone if nnnnnnn is zero).

I am trying to do this with specs, but am getting nowhere.
--
bc

Reply via email to