barelymusician/engine/mutable_data_test.cpp
// Tests that mutable data manages simple data as expected.
Tests that mutable data manages simple data as expected.
Tests that mutable data manages simple data as expected .
TEST(MutableDataTest, SimpleData) {
  MutableData<int> data;
  EXPECT_EQ(*data.GetScopedView(), 0);
  data.Update(5);
  EXPECT_EQ(*data.GetScopedView(), 5);
  data.Update(-10);
  const auto view = data.GetScopedView();
  EXPECT_EQ(*view, -10);
}
TEST ( MutableDataTest , SimpleData ) { MutableData < int > data ; EXPECT_EQ ( * data . GetScopedView ( ) , 0 ) ; data . Update ( 5 ) ; EXPECT_EQ ( * data . GetScopedView ( ) , 5 ) ; data . Update ( -10 ) ; const auto view = data . GetScopedView ( ) ; EXPECT_EQ ( * view , -10 ) ; }
Tests that mutable data manages simple data as expected.
Tests that mutable data manages simple data as expected .