unit testing, more samples

This commit is contained in:
Andy Meneely
2020-11-17 14:17:37 -05:00
parent f8eaf757a2
commit 82afdf1608
6 changed files with 86 additions and 10 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ require_relative '../constants'
module Squib
module Args
module UnitConversion
module_function def parse(arg, dpi=300, cell_px=75)
module_function def parse(arg, dpi=300, cell_px=37.5)
case arg.to_s.rstrip
when /in$/ # ends with "in"
arg.rstrip[0..-2].to_f * dpi