23 lines
381 B
Plaintext
23 lines
381 B
Plaintext
|
--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--
|