This is an automated email from the ASF dual-hosted git repository. desruisseaux pushed a commit to branch geoapi-4.0 in repository https://gitbox.apache.org/repos/asf/sis.git
commit 747d9bd979abaecacc977c9b2df3fc668f4e869b Author: Martin Desruisseaux <martin.desruisse...@geomatys.com> AuthorDate: Thu Sep 16 17:01:13 2021 +0200 Minor cleanup following the port of `org.apache.sis.measure` to Seshat. --- .../src/test/java/org/apache/sis/measure/QuantitiesTest.java | 2 ++ .../src/test/java/org/apache/sis/measure/SystemUnitTest.java | 2 +- .../src/test/java/org/apache/sis/measure/UnitFormatTest.java | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/core/sis-utility/src/test/java/org/apache/sis/measure/QuantitiesTest.java b/core/sis-utility/src/test/java/org/apache/sis/measure/QuantitiesTest.java index cfc077c..1fa30b9 100644 --- a/core/sis-utility/src/test/java/org/apache/sis/measure/QuantitiesTest.java +++ b/core/sis-utility/src/test/java/org/apache/sis/measure/QuantitiesTest.java @@ -142,6 +142,8 @@ public final strictfp class QuantitiesTest extends TestCase { /** * Tests {@link Quantities#min(Quantity, Quantity)} and {@link Quantities#max(Quantity, Quantity)}. + * + * @since 1.1 */ @Test public void testMinAndMax() { diff --git a/core/sis-utility/src/test/java/org/apache/sis/measure/SystemUnitTest.java b/core/sis-utility/src/test/java/org/apache/sis/measure/SystemUnitTest.java index 5722a3a..1ead7ac 100644 --- a/core/sis-utility/src/test/java/org/apache/sis/measure/SystemUnitTest.java +++ b/core/sis-utility/src/test/java/org/apache/sis/measure/SystemUnitTest.java @@ -330,7 +330,7 @@ public final strictfp class SystemUnitTest extends TestCase { public void testAsTypeForNewQuantity() { /* * Tests with a new quantity type unknown to Apache SIS. - * SIS can not proof that the type is wrong, so it should accept it. + * SIS can not prove that the type is wrong, so it should accept it. */ final Unit<Strange> strange = Units.METRE.asType(Strange.class); final Unit<Strange> named = strange.alternate("strange"); diff --git a/core/sis-utility/src/test/java/org/apache/sis/measure/UnitFormatTest.java b/core/sis-utility/src/test/java/org/apache/sis/measure/UnitFormatTest.java index df8b7bc..bcbb3d7 100644 --- a/core/sis-utility/src/test/java/org/apache/sis/measure/UnitFormatTest.java +++ b/core/sis-utility/src/test/java/org/apache/sis/measure/UnitFormatTest.java @@ -499,6 +499,7 @@ public final strictfp class UnitFormatTest extends TestCase { assertSame(Units.CUBIC_METRE, f.parse("m⋅m⋅m")); assertSame(Units.CUBIC_METRE, f.parse("m²⋅m")); assertSame(Units.CUBIC_METRE, f.parse("m2.m")); + assertSame(Units.CUBIC_METRE, f.parse("m^3")); assertSame(Units.METRES_PER_SECOND, f.parse("m∕s")); assertSame(Units.HERTZ, f.parse("1/s")); }