UNPKG

1.78 kBtext/coffeescriptView Raw
1# self test functions
2
3test_low_level = ->
4 run("clear"); # to initialize stack and memory
5
6 test_inv()
7 test_printlatex()
8 test_inner()
9 test_transpose()
10 test_signs_in_rationals()
11 test_madd()
12 test_msub()
13 test_mmul()
14 test_mdiv()
15 test_mmod()
16 test_mprime()
17 test_mgcd()
18 test_mpow()
19 test_mroot()
20 test_assignments()
21 # commenting out because it takes a looong time
22 # with the current logging. But it works now
23 # as I'm commenting it out.
24 #test_quickfactor()
25
26selftest = ->
27 test_low_level()
28 test_sum()
29 test_product()
30 test_exp()
31 test_expand()
32 test_factorpoly()
33 test_subst()
34 test_simplify()
35
36 test_multiply()
37 test_scan()
38 test_power()
39 test_factor_number(); # long
40 test_test()
41 test_tensor()
42 test_bake()
43 test_abs()
44 test_adj()
45 test_arg()
46 test_besselj()
47 test_bessely()
48 test_ceiling()
49 test_choose()
50 test_circexp()
51 test_clock()
52 test_cofactor()
53 test_condense()
54 test_contract()
55 test_defint(); # very long
56 test_denominator()
57 test_derivative()
58 test_dirac()
59 test_erf()
60 test_erfc()
61 test_expcos()
62 test_expsin()
63 test_float()
64 test_floor()
65 test_gamma()
66 test_gcd()
67 test_imag()
68 test_lcm()
69 test_log()
70 test_mag()
71 test_mod()
72 test_nroots()
73 test_numerator()
74 test_outer()
75 test_polar()
76 test_quotient()
77 test_rationalize()
78 test_real()
79 test_rect()
80 test_sgn()
81 test_taylor()
82 test_zero()
83 test_hermite()
84 test_laguerre()
85 test_legendre()
86 test_binomial()
87 test_divisors()
88 test_coeff()
89 test_sin()
90 test_cos()
91 test_tan()
92 test_sinh()
93 test_cosh()
94 test_tanh()
95 test_arcsin()
96 test_arcsinh()
97 test_arccos()
98 test_arccosh()
99 test_arctan()
100 test_arctanh()
101 test_index()
102 test_isprime()
103 test_eigen()
104 test_shape()
105 mini_test()
106 test_roots()
107 test_integral()
108
109
110 # alert "passed tests: " + ok_tests + " / failed tests: " + ko_tests
111 return
112
113
114selftest()