question: protected static double toDouble ( String s ) { try { return Double . parseDouble ( s ) ; } catch ( Exception e ) { TestCase . fail ( "Failed to parse double: " + s + "\n" + throwableToString ( e ) ) ; return Double . NaN ; } }
target:  Attempts to parse the string as double. In case this fails, TestCase.fail() is triggered.