mirror of
https://github.com/pantor/inja.git
synced 2026-04-05 15:48:51 +00:00
improve array handling
This commit is contained in:
@@ -248,7 +248,7 @@ TEST_CASE("Parse functions") {
|
||||
|
||||
SECTION("Length") {
|
||||
CHECK( env.eval_variable("length(names)", data) == 4 );
|
||||
CHECK_THROWS_WITH( env.eval_variable("length(5)", data), "[inja.exception.type_error.302] type must be array" );
|
||||
CHECK_THROWS_WITH( env.eval_variable("length(5)", data), "[json.exception.type_error.302] type must be array, but is number" );
|
||||
}
|
||||
|
||||
SECTION("Round") {
|
||||
|
||||
Reference in New Issue
Block a user