18 lines
282 B
C++
18 lines
282 B
C++
|
|
#include <gtest/gtest.h>
|
|
#include "vbt/vbt.hpp"
|
|
|
|
|
|
TEST(vbt_test, put) {
|
|
VBTree<int, int> vbt;
|
|
vbt.put(0, 0);
|
|
}
|
|
|
|
TEST(vbt_test, get) {
|
|
VBTree<int, int> vbt;
|
|
vbt.put(0, 0);
|
|
vbt.put(1, 1);
|
|
int * result;
|
|
result = vbt.get(1);
|
|
ASSERT_TRUE(*result == 1);
|
|
} |