mirror of
https://github.com/NixOS/nix
synced 2025-07-07 06:01:48 +02:00
nix::Value: Use more descriptive names
This commit is contained in:
parent
5cc4af5231
commit
9d7dee4a8f
2 changed files with 12 additions and 7 deletions
|
@ -10,7 +10,7 @@ class ValueTest : public LibStoreTest
|
|||
TEST_F(ValueTest, unsetValue)
|
||||
{
|
||||
Value unsetValue;
|
||||
ASSERT_EQ(false, unsetValue.isInitialized());
|
||||
ASSERT_EQ(false, unsetValue.isValid());
|
||||
ASSERT_EQ(nThunk, unsetValue.type(true));
|
||||
ASSERT_DEATH(unsetValue.type(), "");
|
||||
}
|
||||
|
@ -19,7 +19,7 @@ TEST_F(ValueTest, vInt)
|
|||
{
|
||||
Value vInt;
|
||||
vInt.mkInt(42);
|
||||
ASSERT_EQ(true, vInt.isInitialized());
|
||||
ASSERT_EQ(true, vInt.isValid());
|
||||
}
|
||||
|
||||
} // namespace nix
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue