24#include "AstUtil/StringView.hpp"
25#include "AstUtil/Quantity.hpp"
91errc_t aTestScriptEval(StringView str, T expectedValue);
95errc_t aTestScriptEval<bool>(StringView str,
bool expectedValue)
101errc_t aTestScriptEval<int>(StringView str,
int expectedValue)
107errc_t aTestScriptEval<double>(StringView str,
double expectedValue)
113errc_t aTestScriptEval<StringView>(StringView str, StringView expectedValue)
119errc_t aTestScriptEval<Quantity>(StringView str, Quantity expectedValue)
errc_t aTestScriptEvalBool(StringView str, bool expectValue)
计算字符串表达式,期望结果为布尔值
定义 TestScript.cpp:86
errc_t aTestScriptSyntaxError(StringView str)
测试字符串表达式的语法错误
定义 TestScript.cpp:58
errc_t aTestScriptEvalQuantity(StringView str, const Quantity &expectedValue)
计算字符串表达式,期望结果为数量
定义 TestScript.cpp:183
errc_t aTestScriptEvalDouble(StringView str, double expectedValue)
计算字符串表达式,期望结果为浮点数
定义 TestScript.cpp:135
errc_t aTestScriptEvalInt(StringView str, int expectedValue)
计算字符串表达式,期望结果为整数
定义 TestScript.cpp:110
errc_t aTestScriptParse(StringView script)
测试字符串表达式的解析
定义 TestScript.cpp:34
errc_t aTestScriptEvalRuntimeError(StringView str)
测试字符串表达式的运行时错误
定义 TestScript.cpp:69
errc_t aTestScriptEvalString(StringView str, StringView expectedValue)
计算字符串表达式,期望结果为字符串
定义 TestScript.cpp:159