Skip to content

Commit d15ab0c

Browse files
committed
Test for getting the value from a const and from a non const value pointer.
1 parent 0117a73 commit d15ab0c

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Sources/NodeEngineTest/ValueTest.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,4 +148,12 @@ TEST (ListCloneTest)
148148
ASSERT (AValue::Get (typedCloned->GetValue (2)) == A (3));
149149
}
150150

151+
TEST (ConstNonConstTest)
152+
{
153+
ValuePtr val (new IntValue (5));
154+
ValueConstPtr cval (new IntValue (5));
155+
ASSERT (IntValue::Get (val) == 5);
156+
ASSERT (IntValue::Get (cval) == 5);
157+
}
158+
151159
}

0 commit comments

Comments
 (0)