27 lines
339 B
Plaintext
27 lines
339 B
Plaintext
|
--TEST--
|
||
|
Test for class `DiagView`.
|
||
|
--SKIPIF--
|
||
|
<?php
|
||
|
require_once 'includes/loaded.php';
|
||
|
is_php_arma_loaded();
|
||
|
?>
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
require_once 'includes/assert.php';
|
||
|
|
||
|
$mat = Arma\IMat::fromString("1 2; 3 4");
|
||
|
|
||
|
$diag = $mat->diag();
|
||
|
$diag->rawPrint();
|
||
|
|
||
|
$diag->at(1)->setTo($diag->at(0)->val());
|
||
|
$mat->rawPrint();
|
||
|
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
1
|
||
|
4
|
||
|
1 2
|
||
|
3 1
|