|
SpeedCrunch
0.11
|
#include "core/evaluator.h"#include "core/settings.h"#include <QtCore/QCoreApplication>#include <cstring>#include <iostream>
Defines | |
| #define | CHECK_AUTOFIX(s, p) checkAutoFix(__FILE__,__LINE__,#s,s,p) |
| #define | CHECK_DIV_BY_ZERO(s) checkDivisionByZero(__FILE__,__LINE__,#s,s) |
| #define | CHECK_EVAL(x, y) checkEval(__FILE__,__LINE__,#x,x,y) |
| #define | CHECK_EVAL_KNOWN_ISSUE(x, y, n) checkEval(__FILE__,__LINE__,#x,x,y,n) |
| #define | CHECK_EVAL_PRECISE(x, y) checkEvalPrecise(__FILE__,__LINE__,#x,x,y) |
| #define | CHECK_EVAL_FAIL(x) checkEval(__FILE__,__LINE__,#x,x,"",0,true) |
| #define | CHECK_USERFUNC_SET(x) checkEval(__FILE__,__LINE__,#x,x,"NaN") |
| #define | CHECK_USERFUNC_SET_FAIL(x) checkEval(__FILE__,__LINE__,#x,x,"",0,true) |
Functions | |
| void | test_constants () |
| void | test_unary () |
| void | test_binary () |
| void | test_divide_by_zero () |
| void | test_radix_char () |
| void | test_thoushand_sep () |
| void | test_thoushand_sep_strict () |
| void | test_function_basic () |
| void | test_function_trig () |
| void | test_function_stat () |
| void | test_function_logic () |
| void | test_function_discrete () |
| void | test_auto_fix_parentheses () |
| void | test_auto_fix_ans () |
| void | test_auto_fix_trailing_equal () |
| void | test_auto_fix_untouch () |
| void | test_comments () |
| void | test_user_functions () |
| int | main (int argc, char *argv[]) |
| #define CHECK_AUTOFIX | ( | s, | |
| p | |||
| ) | checkAutoFix(__FILE__,__LINE__,#s,s,p) |
| #define CHECK_DIV_BY_ZERO | ( | s | ) | checkDivisionByZero(__FILE__,__LINE__,#s,s) |
| #define CHECK_EVAL | ( | x, | |
| y | |||
| ) | checkEval(__FILE__,__LINE__,#x,x,y) |
| #define CHECK_EVAL_FAIL | ( | x | ) | checkEval(__FILE__,__LINE__,#x,x,"",0,true) |
| #define CHECK_EVAL_KNOWN_ISSUE | ( | x, | |
| y, | |||
| n | |||
| ) | checkEval(__FILE__,__LINE__,#x,x,y,n) |
| #define CHECK_EVAL_PRECISE | ( | x, | |
| y | |||
| ) | checkEvalPrecise(__FILE__,__LINE__,#x,x,y) |
| #define CHECK_USERFUNC_SET | ( | x | ) | checkEval(__FILE__,__LINE__,#x,x,"NaN") |
| #define CHECK_USERFUNC_SET_FAIL | ( | x | ) | checkEval(__FILE__,__LINE__,#x,x,"",0,true) |
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
| void test_auto_fix_ans | ( | ) |
| void test_auto_fix_parentheses | ( | ) |
| void test_auto_fix_trailing_equal | ( | ) |
| void test_auto_fix_untouch | ( | ) |
| void test_binary | ( | ) |
| void test_comments | ( | ) |
| void test_constants | ( | ) |
| void test_divide_by_zero | ( | ) |
| void test_function_basic | ( | ) |
| void test_function_discrete | ( | ) |
| void test_function_logic | ( | ) |
| void test_function_stat | ( | ) |
| void test_function_trig | ( | ) |
| void test_radix_char | ( | ) |
| void test_thoushand_sep | ( | ) |
| void test_thoushand_sep_strict | ( | ) |
| void test_unary | ( | ) |
| void test_user_functions | ( | ) |
1.7.6.1