Skip to content

Commit 97fd6e6

Browse files
committed
Fix method test
1 parent 42949c8 commit 97fd6e6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/Test.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#include "Wren++.h"
2+
#include <cassert>
23
#include <cmath>
34
#include <cstdlib>
45
#include <cstring>
5-
#include <cassert>
66

77
// a small class to test class & method binding with
88
struct Vec3
@@ -101,16 +101,16 @@ void testMethodCall()
101101
wrenpp::VM wren{};
102102

103103
wren.executeModule("test_method");
104-
auto passNum = wren.method("main", "passNumber", "call(_)");
104+
auto passNum = wren.method("test_method", "passNumber", "call(_)");
105105
passNum(5.0);
106106
passNum(5.f);
107107
passNum(5);
108108
passNum(5u);
109109

110-
auto passBool = wren.method("main", "passBool", "call(_)");
110+
auto passBool = wren.method("test_method", "passBool", "call(_)");
111111
passBool(true);
112112

113-
auto passStr = wren.method("main", "passString", "call(_)");
113+
auto passStr = wren.method("test_method", "passString", "call(_)");
114114
passStr("hello");
115115
passStr(std::string("hello"));
116116
}

0 commit comments

Comments
 (0)