UNPKG

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