Test-More / Test2-Harness

Alternative to Test::Harness
Other
23 stars 26 forks source link

Fix use of diag with a zero value. #265

Closed gbegen closed 1 year ago

gbegen commented 1 year ago

Prior to this fix, diag 0; would output an empty string instead of "0".

Change from || to // to only convert undef to the empty string.

gbegen commented 1 year ago

As near as I can tell, there were no tests for this code, and all the tests seem to pass with this change.