Fix integration test octal value.
This commit is contained in:
parent
7b518935b6
commit
4140f24678
@ -20,7 +20,7 @@ TEST(LoadNodeTest, FallbackValues) {
|
||||
}
|
||||
|
||||
TEST(LoadNodeTest, NumericConversion) {
|
||||
Node node = Load("[1.5, 1, .nan, .inf, -.inf, 0x15, 015]");
|
||||
Node node = Load("[1.5, 1, .nan, .inf, -.inf, 0x15, 0o15]");
|
||||
EXPECT_EQ(1.5f, node[0].as<float>());
|
||||
EXPECT_EQ(1.5, node[0].as<double>());
|
||||
EXPECT_THROW(node[0].as<int>(), TypedBadConversion<int>);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user