projects
/
awesomized
/
ext-ion
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
use already available ion_string_assign_cstr API
[awesomized/ext-ion]
/
tests
/
Decimal.phpt
1
--TEST--
2
ion\Decimal
3
--EXTENSIONS--
4
ion
5
--FILE--
6
TEST
7
<?php
8
var_dump(new ion\Decimal(1));
9
var_dump(new ion\Decimal("1.23"));
10
?>
11
DONE
12
--EXPECTF--
13
TEST
14
object(ion\Decimal)#%d (2) {
15
["number"]=>
16
int(1)
17
["context"]=>
18
object(ion\Decimal\Context)#%d (1) {
19
["bits"]=>
20
int(128)
21
}
22
}
23
object(ion\Decimal)#%d (2) {
24
["number"]=>
25
string(4) "1.23"
26
["context"]=>
27
object(ion\Decimal\Context)#%d (1) {
28
["bits"]=>
29
int(128)
30
}
31
}
32
DONE