test/src/storage/trie/supergenius_trie/supergenius_trie_test.cpp
TEST_F(TrieTest, Replace) {
  FillSmallTree(*trie);

  EXPECT_OUTCOME_TRUE_1(trie->put(data[1].first, data[3].second));
  EXPECT_OUTCOME_TRUE(res, trie->get(data[1].first));
  ASSERT_EQ(res, data[3].second);
}
/**
 * @given a small trie
 * @when replacing an entry in it (put a data with an existing key)
 * @then the value on the key is updated
 */
@given a small trie
@when replacing an entry in it (put a data with an existing key)
@then the value on the key is updated
@given a small trie @when replacing an entry in it ( put a data with an existing key ) @then the value on the key is updated
TEST_F(TrieTest, Replace) {
  FillSmallTree(*trie);
  EXPECT_OUTCOME_TRUE_1(trie->put(data[1].first, data[3].second));
  EXPECT_OUTCOME_TRUE(res, trie->get(data[1].first));
  ASSERT_EQ(res, data[3].second);
}
TEST_F ( TrieTest , Replace ) { FillSmallTree ( * trie ) ; EXPECT_OUTCOME_TRUE_1 ( trie -> put ( data [ 1 ] . first , data [ 3 ] . second ) ) ; EXPECT_OUTCOME_TRUE ( res , trie -> get ( data [ 1 ] . first ) ) ; ASSERT_EQ ( res , data [ 3 ] . second ) ; }
@given a small trie
 @when replacing an entry in it (put a data with an existing key)
 @then the value on the key is updated
@given a small trie @when replacing an entry in it ( put a data with an existing key ) @then the value on the key is updated