use namespace & not fix return

This commit is contained in:
2025-10-22 22:42:30 +08:00
parent 2e5df6f1d6
commit 75caef3bd2
7 changed files with 123 additions and 138 deletions

View File

@@ -7,10 +7,10 @@
#include <catch2/catch_all.hpp>
#include "mrubypp.h"
#include "engine.h"
TEST_CASE("none args call", "[engine]") {
mrubypp engine;
engine engine;
engine.load(R"(
def get_1()
1
@@ -22,7 +22,7 @@ TEST_CASE("none args call", "[engine]") {
}
TEST_CASE("args call", "[engine]") {
mrubypp engine;
engine engine;
engine.load(R"(
def sort_and_get_first(a)
a.sort!
@@ -36,7 +36,7 @@ TEST_CASE("args call", "[engine]") {
}
TEST_CASE("call benchmark", "[!benchmark]") {
mrubypp engine;
engine engine;
engine.load(R"(
def get_same(a)
return a