Skip to content

Commit 96aedd4

Browse files
committed
fixup! Add comprehensive unit tests for all missing functions in UTF_Utils_Checks.ipf
1 parent df943fa commit 96aedd4

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

Packages/tests/Basic/UTF_Utils_Checks.ipf

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -649,19 +649,19 @@ End
649649

650650
Function FRIA_Works()
651651

652-
FUNCREF ProtoFunc_V funcRef = RealFunc_V
653-
string funcInfo = FuncRefInfo(funcRef)
652+
FUNCREF ProtoFunc_V_IGNORE fref1 = RealFunc_V_IGNORE
653+
string funcInfo = FuncRefInfo(fref1)
654654
CHECK(FuncRefIsAssigned(funcInfo))
655655

656-
FUNCREF ProtoFunc_V funcRef2 = ProtoFunc_V
657-
funcInfo = FuncRefInfo(funcRef2)
656+
FUNCREF ProtoFunc_V_IGNORE fref2 = $""
657+
funcInfo = FuncRefInfo(fref2)
658658
CHECK(!FuncRefIsAssigned(funcInfo))
659659
End
660660

661-
static Function ProtoFunc_V()
661+
Function ProtoFunc_V_IGNORE()
662662
End
663663

664-
static Function RealFunc_V()
664+
Function RealFunc_V_IGNORE()
665665
End
666666

667667
/// @}
@@ -671,7 +671,6 @@ End
671671

672672
Function CIC_WorksWithDefaultTol()
673673

674-
CHECK(CheckIfClose(0, 0))
675674
CHECK(CheckIfClose(1, 1))
676675
CHECK(CheckIfClose(1, 1 + 1e-9))
677676
CHECK(CheckIfClose(1 + 1e-9, 1))
@@ -681,22 +680,19 @@ End
681680

682681
Function CIC_WorksWithCustomTol()
683682

684-
CHECK(CheckIfClose(0, 0, tol = 0.1))
685683
CHECK(CheckIfClose(1, 1.05, tol = 0.1))
686684
CHECK(CheckIfClose(1.05, 1, tol = 0.1))
687685
CHECK(!CheckIfClose(1, 1.2, tol = 0.1))
688686
End
689687

690688
Function CIC_WorksWithWeakCondition()
691689

692-
CHECK(CheckIfClose(0, 0, strong_or_weak = 0))
693690
CHECK(CheckIfClose(1, 1.05, tol = 0.1, strong_or_weak = 0))
694691
CHECK(!CheckIfClose(1, 2, tol = 0.1, strong_or_weak = 0))
695692
End
696693

697694
Function CIC_WorksWithStrongCondition()
698695

699-
CHECK(CheckIfClose(0, 0, strong_or_weak = 1))
700696
CHECK(CheckIfClose(1, 1 + 1e-9, strong_or_weak = 1))
701697
CHECK(!CheckIfClose(1, 1.2, tol = 0.1, strong_or_weak = 1))
702698
End
@@ -909,6 +905,7 @@ Function SEW_WorksWithEmptyStrings()
909905
CHECK(!StringEndsWith(nullStr, "test"))
910906
CHECK(!StringEndsWith("test", nullStr))
911907
CHECK(!StringEndsWith(nullStr, nullStr))
908+
CHECK_RTE(185)
912909
End
913910

914911
/// @}

0 commit comments

Comments
 (0)