Skip to content

Commit 7bff7a3

Browse files
authored
Merge pull request #151 from scratchcpp/operator_blocks_test
Add operator blocks test
2 parents f47194d + cd9b425 commit 7bff7a3

File tree

3 files changed

+1015
-1
lines changed

3 files changed

+1015
-1
lines changed

src/blocks/operatorblocks.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ class OperatorBlocks : public IBlockSection
7676
static void compileRound(Compiler *compiler);
7777
static void compileMathOp(Compiler *compiler);
7878

79-
private:
8079
static unsigned int op_ln(VirtualMachine *vm);
8180
static unsigned int op_log(VirtualMachine *vm);
8281
static unsigned int op_eexp(VirtualMachine *vm);

test/blocks/CMakeLists.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,19 @@ target_link_libraries(
2929
)
3030

3131
gtest_discover_tests(list_blocks_test)
32+
33+
# operator_blocks_test
34+
add_executable(
35+
operator_blocks_test
36+
operator_blocks_test.cpp
37+
)
38+
39+
target_link_libraries(
40+
operator_blocks_test
41+
GTest::gtest_main
42+
GTest::gmock_main
43+
scratchcpp
44+
scratchcpp_mocks
45+
)
46+
47+
gtest_discover_tests(operator_blocks_test)

0 commit comments

Comments
 (0)