Commit Graph

7 Commits

Author SHA1 Message Date
rlar e9a675efb6 regression/**/*.cir, hide printed numeric values in some test cases
these tests shall be decided by "exit" value,
not be "diffing" the printed numerical values
2017-09-16 20:32:05 +02:00
rlar d0897fd0c4 src/spicelib/parser/inpptree.c, bug fix, B expression of kind `max(0,expr)'
identified and reported by Marcel Hendrix,
expressions of this kind could trigger a segmentation violation.

PTdifferentiate() roughly evaluates to
  ternary_fcn(ge0(0-expr), 0, PTdifferentate(expr))
and mkb() optimizes
  0 - expr --> unary_minus(expr)

IFeval() invokes PTeval() for the derivative too,
PTeval() looks at the incorrect tree->funcnum
  and tries to PTeval for a second argument which is not there,
     (unary_minus does not have a second argument)
  causing a segmentation fault.
2016-03-09 20:24:37 +01:00
rlar c0eff98522 tests/regression/parser/bxpressn-1.cir, check some B expression capabilities 2016-03-09 20:24:36 +01:00
rlar 53045dae53 tests/regression/parser/xpressn-1.cir, check log10 2015-05-10 21:47:34 +02:00
rlar 98cfc1b26f regression test for nint/floor/ceil 2014-09-20 17:26:28 +02:00
rlar d225c4f958 xpressn.c, introduce fortran style nint() rounding function 2014-01-02 09:33:21 +01:00
rlar cccc02e844 tests/regression/parser
check xpressn.c parser capability to parse {2--3}
check .control parser capability to parse 2--3
check B parser capability to parse 2--3

check echo commands capability to print "--"
check echo commands capability to print upper and lower case

check xpressn.c parser capabilities

check precision of some transcendental functions
2014-01-02 09:25:53 +01:00