From 57e832dc6590e1426529d46faee2db1443a2d853 Mon Sep 17 00:00:00 2001 From: Dick Hollenbeck Date: Wed, 27 Mar 2013 09:01:50 -0500 Subject: [PATCH] reference a test program in a comment --- pcbnew/pcb_parser.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/pcbnew/pcb_parser.h b/pcbnew/pcb_parser.h index 4b70774565..78071fdfac 100644 --- a/pcbnew/pcb_parser.h +++ b/pcbnew/pcb_parser.h @@ -155,8 +155,8 @@ class PCB_PARSER : public PCB_LEXER /** * Function parseDouble - * parses the current token as an ASCII numeric string with possible leading whitespace into - * a double precision floating point number. + * parses the current token as an ASCII numeric string with possible leading + * whitespace into a double precision floating point number. * * @throw IO_ERROR if an error occurs attempting to convert the current token. * @return The result of the parsed token. @@ -176,9 +176,12 @@ class PCB_PARSER : public PCB_LEXER inline int parseBoardUnits() throw( IO_ERROR ) { - // There should be no major rounding issues here, - // since the values in the file are in mm - // and get converted to nano-meters. + // There should be no major rounding issues here, since the values in + // the file are in mm and get converted to nano-meters. + // See test program tools/test-nm-biu-to-ascii-mm-round-tripping.cpp + // to confirm or experiment. Use a similar strategy in both places, here + // and in the test program. Make that program with: + // $ make test-nm-biu-to-ascii-mm-round-tripping return KiROUND( parseDouble() * IU_PER_MM ); }