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.
2019-06-06 16:30:50 +00:00
|
|
|
--TEST--
|
|
|
|
Test for `Internal\Scalar`.
|
|
|
|
--SKIPIF--
|
|
|
|
<?php
|
|
|
|
require_once 'includes/loaded.php';
|
|
|
|
require_once 'includes/supports.php';
|
|
|
|
if (is_php_arma_loaded()) {
|
|
|
|
supports_operator_overloading();
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once 'includes/assert.php';
|
|
|
|
|
|
|
|
$mat = Arma\IMat::fromString('1 2; 3 4');
|
|
|
|
|
|
|
|
batch_assert('operator overloading of `MapVal`',
|
2019-06-07 06:32:15 +00:00
|
|
|
[3, +$mat->at(1, 0)],
|
|
|
|
[-2, -$mat(0, 1)]
|
2019-06-06 16:30:50 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
?>
|
|
|
|
--EXPECT--
|