change accidental octal literals into decimal literals (#243)
change accidental octal literals into decimal literals merged-on-behalf-of: Basile-z <Basile-z@users.noreply.github.com>
This commit is contained in:
parent
2e556e4a3a
commit
d10d2b2981
|
@ -254,7 +254,7 @@ struct Node
|
||||||
}
|
}
|
||||||
// Time
|
// Time
|
||||||
{
|
{
|
||||||
auto node = Node(SysTime(DateTime(2005, 06, 15, 20, 00, 00), UTC()));
|
auto node = Node(SysTime(DateTime(2005, 6, 15, 20, 0, 0), UTC()));
|
||||||
}
|
}
|
||||||
// Integer, dumped as a string
|
// Integer, dumped as a string
|
||||||
{
|
{
|
||||||
|
|
|
@ -152,7 +152,7 @@ Node representData(const Node data, ScalarStyle defaultScalarStyle, CollectionSt
|
||||||
|
|
||||||
@safe unittest
|
@safe unittest
|
||||||
{
|
{
|
||||||
assert(representData(Node(SysTime(DateTime(2000, 03, 14, 12, 34, 56), UTC())), ScalarStyle.invalid, CollectionStyle.invalid) == Node("2000-03-14T12:34:56Z", "tag:yaml.org,2002:timestamp"));
|
assert(representData(Node(SysTime(DateTime(2000, 3, 14, 12, 34, 56), UTC())), ScalarStyle.invalid, CollectionStyle.invalid) == Node("2000-03-14T12:34:56Z", "tag:yaml.org,2002:timestamp"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@safe unittest
|
@safe unittest
|
||||||
|
|
Loading…
Reference in a new issue