summaryrefslogtreecommitdiff
path: root/src/test/java/sevenUnits/unit
diff options
context:
space:
mode:
authorAdrien Hopkins <adrien.p.hopkins@gmail.com>2025-06-04 19:45:37 -0500
committerAdrien Hopkins <adrien.p.hopkins@gmail.com>2025-06-04 19:45:37 -0500
commit79e1653caf5c30667877a158433cbcd766a135af (patch)
tree891527e7365bf78eab3722704c1f74e57fbbca7d /src/test/java/sevenUnits/unit
parentd80b80857e739eb32afd7625789944abd3afe376 (diff)
Add version numbers to all @since tags
Specifically, for every @since tag with a date, I added another that contains the correspending version. I did not add date @since tags to comments that do not have them, as that would be too tedious for what it's worth. These dates could still be found by using git bisect though.
Diffstat (limited to 'src/test/java/sevenUnits/unit')
-rw-r--r--src/test/java/sevenUnits/unit/UnitDatabaseTest.java15
-rw-r--r--src/test/java/sevenUnits/unit/UnitValueTest.java10
2 files changed, 25 insertions, 0 deletions
diff --git a/src/test/java/sevenUnits/unit/UnitDatabaseTest.java b/src/test/java/sevenUnits/unit/UnitDatabaseTest.java
index 56296b4..c78837f 100644
--- a/src/test/java/sevenUnits/unit/UnitDatabaseTest.java
+++ b/src/test/java/sevenUnits/unit/UnitDatabaseTest.java
@@ -60,6 +60,7 @@ class UnitDatabaseTest {
/**
*
* @since 2021-10-07
+ * @since v0.3.2
*/
public SimpleEntry(K key, V value) {
this.key = key;
@@ -136,6 +137,7 @@ class UnitDatabaseTest {
* @param value value in entry
* @return entry
* @since 2021-10-07
+ * @since v0.3.2
*/
private static <K, V> Map.Entry<K, V> entry(K key, V value) {
return new SimpleEntry<>(key, value);
@@ -149,6 +151,7 @@ class UnitDatabaseTest {
* @param path path of file to load
* @return exceptions returned by file loading
* @since 2021-10-04
+ * @since v0.3.2
*/
private static List<LoadingException> loadDimensionFile(UnitDatabase loadTo,
String path) {
@@ -169,6 +172,7 @@ class UnitDatabaseTest {
* @param path path of file to load
* @return exceptions returned by file loading
* @since 2021-09-22
+ * @since v0.3.2
*/
private static List<LoadingException> loadUnitsFile(UnitDatabase loadTo,
String path) {
@@ -226,6 +230,7 @@ class UnitDatabaseTest {
* function. Simple because the expression parser has its own test.
*
* @since 2021-09-27
+ * @since v0.3.2
*/
@ParameterizedTest
@MethodSource
@@ -254,6 +259,7 @@ class UnitDatabaseTest {
* and {@link UnitDatabase#getLinearUnitValue}.
*
* @since 2021-10-07
+ * @since v0.3.2
*/
@Test
public void testGetUnit() {
@@ -287,6 +293,7 @@ class UnitDatabaseTest {
* throw an {@code IllegalStateException}.
*
* @since 2019-05-03
+ * @since v0.3.0
*/
// @Test
// @Timeout(value = 1, unit = TimeUnit.SECONDS)
@@ -313,6 +320,7 @@ class UnitDatabaseTest {
*
* @param num which file to test
* @since 2021-10-04
+ * @since v0.3.2
*/
@ParameterizedTest
@ValueSource(ints = { 1, 2, 3 })
@@ -335,6 +343,7 @@ class UnitDatabaseTest {
*
* @param num which file to test
* @since 2021-09-27
+ * @since v0.3.2
*/
@ParameterizedTest
@ValueSource(ints = { 1, 2, 3, 4, 5 })
@@ -353,6 +362,7 @@ class UnitDatabaseTest {
* Tests loading a valid dimension-file with some derived dimensions.
*
* @since 2021-10-04
+ * @since v0.3.2
*/
@Test
public void testLoadingValidDimensions() {
@@ -371,6 +381,7 @@ class UnitDatabaseTest {
* Tests loading a valid unitfile with some prefixes and no units.
*
* @since 2021-09-22
+ * @since v0.3.2
*/
@Test
public void testLoadingValidPrefixes() {
@@ -390,6 +401,7 @@ class UnitDatabaseTest {
* Tests loading a valid unitfile with some units and preloaded prefixes
*
* @since 2021-09-22
+ * @since v0.3.2
*/
@Test
public void testLoadingValidUnits() {
@@ -436,6 +448,7 @@ class UnitDatabaseTest {
* the unit map iterator is simple.
*
* @since 2021-10-07
+ * @since v0.3.2
*/
@Test
public void testPrefixedUnitMapIterator() {
@@ -735,6 +748,7 @@ class UnitDatabaseTest {
* Tests the ability to create, read, and delete unit sets.
*
* @since 2025-04-30
+ * @since v1.0.0
*/
@Test
void testUnitSetsInvalid() {
@@ -765,6 +779,7 @@ class UnitDatabaseTest {
* Tests the ability to create, read, and delete unit sets.
*
* @since 2025-04-30
+ * @since v1.0.0
*/
@Test
void testUnitSetsValid() {
diff --git a/src/test/java/sevenUnits/unit/UnitValueTest.java b/src/test/java/sevenUnits/unit/UnitValueTest.java
index 6b80986..6182b20 100644
--- a/src/test/java/sevenUnits/unit/UnitValueTest.java
+++ b/src/test/java/sevenUnits/unit/UnitValueTest.java
@@ -34,6 +34,11 @@ import org.junit.jupiter.params.provider.MethodSource;
import sevenUnits.utils.NameSymbol;
import sevenUnits.utils.UncertainDouble;
+/**
+ * Tests for the UnitValue and LinearUnitValue classes
+ *
+ * @since v1.0.0
+ */
public final class UnitValueTest {
private static Stream<Arguments> testConvertToMultiple() {
return Stream.of(
@@ -160,6 +165,7 @@ public final class UnitValueTest {
* Tests converting an uncertain LinearUnitValue to a string.
*
* @since 2021-11-04
+ * @since v0.3.2
*/
@Test
public void testValueToString1() {
@@ -176,6 +182,7 @@ public final class UnitValueTest {
* Tests converting a certain LinearUnitValue to a string.
*
* @since 2021-11-04
+ * @since v0.3.2
*/
@Test
public void testValueToString2() {
@@ -192,6 +199,7 @@ public final class UnitValueTest {
* Tests converting an unnamed LinearUnitValue to a string.
*
* @since 2021-11-04
+ * @since v0.3.2
*/
@Test
public void testValueToString3() {
@@ -207,6 +215,7 @@ public final class UnitValueTest {
* Tests converting a named UnitValue to a string.
*
* @since 2021-11-04
+ * @since v0.3.2
*/
@Test
public void testValueToString4() {
@@ -219,6 +228,7 @@ public final class UnitValueTest {
* Tests converting an unnamed UnitValue to a string.
*
* @since 2021-11-04
+ * @since v0.3.2
*/
@Test
public void testValueToString5() {