mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-13 01:36:15 +02:00
26 lines
432 B
C++
26 lines
432 B
C++
|
#include "value.hh"
|
||
|
|
||
|
#include "tests/libstore.hh"
|
||
|
|
||
|
namespace nix {
|
||
|
|
||
|
class ValueTest : public LibStoreTest
|
||
|
{};
|
||
|
|
||
|
TEST_F(ValueTest, unsetValue)
|
||
|
{
|
||
|
Value unsetValue;
|
||
|
ASSERT_EQ(false, unsetValue.isInitialized());
|
||
|
ASSERT_EQ(nThunk, unsetValue.type(true));
|
||
|
ASSERT_DEATH(unsetValue.type(), "");
|
||
|
}
|
||
|
|
||
|
TEST_F(ValueTest, vInt)
|
||
|
{
|
||
|
Value vInt;
|
||
|
vInt.mkInt(42);
|
||
|
ASSERT_EQ(true, vInt.isInitialized());
|
||
|
}
|
||
|
|
||
|
} // namespace nix
|