Skip to content

Commit 092155b

Browse files
committed
Add block null check test to Input test
1 parent 50efa7d commit 092155b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/scratch_classes/input_test.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,9 @@ TEST(InputTest, ValueBlock)
5858
input.setValueBlockId("hello");
5959
ASSERT_EQ(input.valueBlockId(), "hello");
6060
ASSERT_EQ(input.valueBlock(), nullptr);
61+
62+
input.setValueBlock(block);
63+
input.setValueBlock(nullptr);
64+
ASSERT_EQ(input.valueBlock(), nullptr);
65+
ASSERT_EQ(input.valueBlockId(), "");
6166
}

0 commit comments

Comments
 (0)