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/006-scalar.phpt

23 lines
381 B
Plaintext
Raw Normal View History

2019-06-06 16:30:50 +00:00
--TEST--
Test for `Internal\Scalar`.
--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');
$mat(1, 0)->setTo(5);
$mat->at(0, 1)->setTo(7);
batch_assert('read/write access of `MapVal`',
[5, $mat->at(1, 0)->val()],
[7, $mat(0, 1)->val()]
);
?>
--EXPECT--