pivotal/robolectric — pull request #364 by blundell (2012-11-15 12:41:54+00:00)
Title: Add support for inch("in") and millimeter("mm") dimensions in dimens.xml

When com.xtremelabs.robolectric.res.ResourceLoader encounters a dimens.xml such as the following:

19in

java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "19in"
at com.xtremelabs.robolectric.res.ResourceLoader.init(ResourceLoader.java:148)

86mm

an exception is thrown:

java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "86mm"
at com.xtremelabs.robolectric.res.ResourceLoader.init(ResourceLoader.java:148)

This pull request adds support for the Inch ("in") and Millimeter ("mm") dimension unit of measure:

http://developer.android.com/guide/topics/resources/more-resources.html#Dimension