Skip to content

Commit b4baab4

Browse files
committed
Standardize unit strings in LiteralTest.cs
Replaced abbreviated unit strings with full names (e.g., "a" to "year", "mo" to "month") in the `Hl7.Cql.CqlToElm.Test` namespace. Applied pluralization where appropriate (e.g., "years", "months") and ensured consistency across all test methods.
1 parent 59b6abb commit b4baab4

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

Cql/CqlToElmTests/(tests)/LiteralTest.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1366,7 +1366,7 @@ library QuantityTest version '1.0.0'
13661366
Assert.IsNotNull(quantity.localId);
13671367
Assert.IsNotNull(quantity.locator);
13681368
Assert.AreEqual(6m, quantity.value);
1369-
Assert.AreEqual("a", quantity.unit);
1369+
Assert.AreEqual("year", quantity.unit);
13701370
}
13711371
}
13721372

@@ -1388,7 +1388,7 @@ library QuantityTest version '1.0.0'
13881388
Assert.IsNotNull(quantity.localId);
13891389
Assert.IsNotNull(quantity.locator);
13901390
Assert.AreEqual(6m, quantity.value);
1391-
Assert.AreEqual("a", quantity.unit);
1391+
Assert.AreEqual("years", quantity.unit);
13921392
}
13931393
}
13941394

@@ -1410,7 +1410,7 @@ library QuantityTest version '1.0.0'
14101410
Assert.IsNotNull(quantity.localId);
14111411
Assert.IsNotNull(quantity.locator);
14121412
Assert.AreEqual(1.245671213m, quantity.value);
1413-
Assert.AreEqual("mo", quantity.unit);
1413+
Assert.AreEqual("month", quantity.unit);
14141414
}
14151415
}
14161416

@@ -1432,7 +1432,7 @@ library QuantityTest version '1.0.0'
14321432
Assert.IsNotNull(quantity.localId);
14331433
Assert.IsNotNull(quantity.locator);
14341434
Assert.AreEqual(1.245671213m, quantity.value);
1435-
Assert.AreEqual("mo", quantity.unit);
1435+
Assert.AreEqual("months", quantity.unit);
14361436
}
14371437
}
14381438

@@ -1454,7 +1454,7 @@ library QuantityTest version '1.0.0'
14541454
Assert.IsNotNull(quantity.localId);
14551455
Assert.IsNotNull(quantity.locator);
14561456
Assert.AreEqual(0m, quantity.value);
1457-
Assert.AreEqual("d", quantity.unit);
1457+
Assert.AreEqual("day", quantity.unit);
14581458
}
14591459
}
14601460

@@ -1476,7 +1476,7 @@ library QuantityTest version '1.0.0'
14761476
Assert.IsNotNull(quantity.localId);
14771477
Assert.IsNotNull(quantity.locator);
14781478
Assert.AreEqual(0m, quantity.value);
1479-
Assert.AreEqual("d", quantity.unit);
1479+
Assert.AreEqual("days", quantity.unit);
14801480
}
14811481
}
14821482

@@ -1498,7 +1498,7 @@ library QuantityTest version '1.0.0'
14981498
Assert.IsNotNull(quantity.localId);
14991499
Assert.IsNotNull(quantity.locator);
15001500
Assert.AreEqual(0m, quantity.value);
1501-
Assert.AreEqual("h", quantity.unit);
1501+
Assert.AreEqual("hour", quantity.unit);
15021502
}
15031503
}
15041504

@@ -1520,7 +1520,7 @@ library QuantityTest version '1.0.0'
15201520
Assert.IsNotNull(quantity.localId);
15211521
Assert.IsNotNull(quantity.locator);
15221522
Assert.AreEqual(0m, quantity.value);
1523-
Assert.AreEqual("h", quantity.unit);
1523+
Assert.AreEqual("hours", quantity.unit);
15241524
}
15251525
}
15261526

@@ -1542,7 +1542,7 @@ library QuantityTest version '1.0.0'
15421542
Assert.IsNotNull(quantity.localId);
15431543
Assert.IsNotNull(quantity.locator);
15441544
Assert.AreEqual(0.25m, quantity.value);
1545-
Assert.AreEqual("min", quantity.unit);
1545+
Assert.AreEqual("minute", quantity.unit);
15461546
}
15471547
}
15481548

@@ -1564,7 +1564,7 @@ library QuantityTest version '1.0.0'
15641564
Assert.IsNotNull(quantity.localId);
15651565
Assert.IsNotNull(quantity.locator);
15661566
Assert.AreEqual(0.25m, quantity.value);
1567-
Assert.AreEqual("min", quantity.unit);
1567+
Assert.AreEqual("minutes", quantity.unit);
15681568
}
15691569
}
15701570

@@ -1586,7 +1586,7 @@ library QuantityTest version '1.0.0'
15861586
Assert.IsNotNull(quantity.localId);
15871587
Assert.IsNotNull(quantity.locator);
15881588
Assert.AreEqual(1m, quantity.value);
1589-
Assert.AreEqual("s", quantity.unit);
1589+
Assert.AreEqual("second", quantity.unit);
15901590
}
15911591
}
15921592

@@ -1609,7 +1609,7 @@ library QuantityTest version '1.0.0'
16091609
Assert.IsNotNull(quantity.localId);
16101610
Assert.IsNotNull(quantity.locator);
16111611
Assert.AreEqual(1m, quantity.value);
1612-
Assert.AreEqual("s", quantity.unit);
1612+
Assert.AreEqual("seconds", quantity.unit);
16131613
}
16141614
}
16151615

@@ -1631,7 +1631,7 @@ library QuantityTest version '1.0.0'
16311631
Assert.IsNotNull(quantity.localId);
16321632
Assert.IsNotNull(quantity.locator);
16331633
Assert.AreEqual(2000000m, quantity.value);
1634-
Assert.AreEqual("ms", quantity.unit);
1634+
Assert.AreEqual("millisecond", quantity.unit);
16351635
}
16361636
}
16371637

@@ -1653,7 +1653,7 @@ library QuantityTest version '1.0.0'
16531653
Assert.IsNotNull(quantity.localId);
16541654
Assert.IsNotNull(quantity.locator);
16551655
Assert.AreEqual(2000000m, quantity.value);
1656-
Assert.AreEqual("ms", quantity.unit);
1656+
Assert.AreEqual("milliseconds", quantity.unit);
16571657
}
16581658
}
16591659

0 commit comments

Comments
 (0)