blob: 8d1e8fc8e4ec8af5cc1dd31d9d7cdee79f534912 [file] [log] [blame]
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "src/developer/shell/interpreter/src/value.h"
TEST(InterpreterUnitTest, AssignValueToItself) {
shell::interpreter::Value value;
value.SetString("Test string.");
ASSERT_EQ(value.GetString()->value(), "Test string.");
value.Set(value);
ASSERT_EQ(value.GetString()->value(), "Test string.");
}