File: 90regression.t

package info (click to toggle)
libmath-symbolic-perl 0.612-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,260 kB
  • sloc: perl: 12,634; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 266 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use strict;
use warnings;
use Test::More tests => 1;

use Math::Symbolic qw/parse_from_string/;

my $f = parse_from_string('x + (-5)*y');
my $fs = $f->simplify;

#diag("Before simplification: $f");
#diag("After simplification:  $fs");

ok($f->test_num_equiv($fs));