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:
Cameron Ross 2019-04-07 05:46:42 -02:30 committed by The Dlang Bot
parent 2e556e4a3a
commit d10d2b2981
2 changed files with 2 additions and 2 deletions

View file

@ -254,7 +254,7 @@ struct Node
}
// 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
{

View file

@ -152,7 +152,7 @@ Node representData(const Node data, ScalarStyle defaultScalarStyle, CollectionSt
@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