This repository has been archived on 2020-06-07. You can view files and clone it, but cannot push or open issues or pull requests.
php-armadillo/tests/005-print.phpt

21 lines
382 B
PHP

--TEST--
Test for `print()` and `rawPrint()`.
--SKIPIF--
<?php
require_once 'includes/loaded.php';
is_php_arma_loaded();
?>
--FILE--
<?php
$mat = Arma\CxDMat::fromString('(1,2) (3,4); (5,6) (7,8)');
$mat->print();
$mat->rawPrint();
?>
--EXPECT--
(+1.000e+00,+2.000e+00) (+3.000e+00,+4.000e+00)
(+5.000e+00,+6.000e+00) (+7.000e+00,+8.000e+00)
(1,2) (3,4)
(5,6) (7,8)