Skip to content

Commit 645d90b

Browse files
test: rename vBool to vector_bool
1 parent 490585f commit 645d90b

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

test/mp/test/foo.capnp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ interface FooFn $Proxy.wrap("ProxyCallback<std::function<int()>>") {
5454
struct FooStruct $Proxy.wrap("mp::test::FooStruct") {
5555
name @0 :Text;
5656
setInt @1 :List(Int32) $Proxy.name("set_int");
57-
vBool @2 :List(Bool) $Proxy.name("v_bool");
57+
vectorBool @2 :List(Bool) $Proxy.name("vector_bool");
5858
optionalInt @3 :Int32 $Proxy.name("optional_int");
5959
hasOptionalInt @4 :Bool;
6060
unorderedSetInt @5 :List(Int32) $Proxy.name("unordered_set_int");

test/mp/test/foo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ struct FooStruct
2222
{
2323
std::string name;
2424
std::set<int> set_int;
25-
std::vector<bool> v_bool;
25+
std::vector<bool> vector_bool;
2626
std::optional<int> optional_int;
2727
std::unordered_set<int> unordered_set_int;
2828
std::map<std::string, int> map_string_int;

test/mp/test/test.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ KJ_TEST("Call FooInterface methods")
147147
in.set_int.insert(1);
148148
in.unordered_set_int.insert(2);
149149
in.unordered_set_int.insert(1);
150-
in.v_bool.push_back(false);
151-
in.v_bool.push_back(true);
152-
in.v_bool.push_back(false);
150+
in.vector_bool.push_back(false);
151+
in.vector_bool.push_back(true);
152+
in.vector_bool.push_back(false);
153153
in.optional_int = 3;
154154
in.map_string_int.emplace("a", 1);
155155
in.map_string_int.emplace("b", 2);
@@ -163,9 +163,9 @@ KJ_TEST("Call FooInterface methods")
163163
for (const auto& elem : in.unordered_set_int) {
164164
KJ_EXPECT(out.unordered_set_int.count(elem) == 1);
165165
}
166-
KJ_EXPECT(in.v_bool.size() == out.v_bool.size());
167-
for (size_t i = 0; i < in.v_bool.size(); ++i) {
168-
KJ_EXPECT(in.v_bool[i] == out.v_bool[i]);
166+
KJ_EXPECT(in.vector_bool.size() == out.vector_bool.size());
167+
for (size_t i = 0; i < in.vector_bool.size(); ++i) {
168+
KJ_EXPECT(in.vector_bool[i] == out.vector_bool[i]);
169169
}
170170
KJ_EXPECT(in.optional_int == out.optional_int);
171171
KJ_EXPECT(in.map_string_int.size() == out.map_string_int.size());

0 commit comments

Comments
 (0)