Viewing File: /opt/alt/tests/alt-php82-pecl-mongodb_1.18.1-1.el8/tests/bson-decimal128-002.phpt

--TEST--
MongoDB\BSON\Decimal128 NaN values
--FILE--
<?php

$tests = [
    acos(8),
    NAN,
    'nan',
    'Nan',
    'NaN',
    'NAN',
];

foreach ($tests as $test) {
    printf("%s\n", new MongoDB\BSON\Decimal128($test));
}

?>
===DONE===
<?php exit(0); ?>
--EXPECT--
NaN
NaN
NaN
NaN
NaN
NaN
===DONE===
Back to Directory File Manager
<