Expr: use attribute in test expression.

This commit is contained in:
antirez 2025-02-25 12:39:36 +01:00
parent ab06a5a058
commit 764fb8cc74
1 changed files with 1 additions and 1 deletions

2
expr.c
View File

@ -901,7 +901,7 @@ void exprPrintStack(exprstack *stack, const char *name) {
}
int main(int argc, char **argv) {
char *testexpr = "(5+2)*3 and 'foo'";
char *testexpr = "(5+2)*3 and .year > 1980 and 'foo' == 'foo'";
char *testjson = "{\"year\": 1984, \"name\": \"The Matrix\"}";
if (argc >= 2) testexpr = argv[1];
if (argc >= 3) testjson = argv[2];