Skip to content

Commit

Permalink
not today
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusandra committed Dec 19, 2024
1 parent 9f79926 commit f91d216
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions hogvm/__tests__/__snapshots__/stl.hoge
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@
32, "day", 33, 5, 32, "2024-12-18", 2, "toDate", 1, 2, "dateAdd", 3, 2, "dateDiff", 3, 2, "print", 2, 35, 32, "day", 32,
"2024-12-18T12:34:56Z", 2, "toDateTime", 1, 2, "dateTrunc", 2, 2, "print", 1, 35, 32, "2024-12-18", 2, "toDate", 1, 33,
3, 2, "addDays", 2, 2, "print", 1, 35, 33, 5, 2, "toIntervalDay", 1, 33, 2, 2, "toIntervalMonth", 1, 2, "print", 2, 35,
2, "today", 0, 2, "print", 1, 35, 32, "", 2, "print", 1, 35, 32, "-- json --", 2, "print", 1, 35, 32, "{\"a\":123.1}",
32, "a", 2, "JSONExtractInt", 2, 2, "jsonStringify", 1, 32, "{\"a\":\"hello\"}", 32, "a", 2, "JSONExtractInt", 2, 2,
"jsonStringify", 1, 2, "print", 2, 35, 32, "{\"a\":123.1}", 32, "a", 2, "JSONExtractFloat", 2, 2, "jsonStringify", 1,
32, "{\"a\":\"hello\"}", 32, "a", 2, "JSONExtractFloat", 2, 2, "jsonStringify", 1, 2, "print", 2, 35, 32,
"{\"a\":123.1}", 32, "a", 2, "JSONExtractString", 2, 2, "jsonStringify", 1, 32, "{\"a\":\"hello\"}", 32, "a", 2,
2, "today", 0, 2, "typeof", 1, 2, "print", 1, 35, 32, "", 2, "print", 1, 35, 32, "-- json --", 2, "print", 1, 35, 32,
"{\"a\":123.1}", 32, "a", 2, "JSONExtractInt", 2, 2, "jsonStringify", 1, 32, "{\"a\":\"hello\"}", 32, "a", 2,
"JSONExtractInt", 2, 2, "jsonStringify", 1, 2, "print", 2, 35, 32, "{\"a\":123.1}", 32, "a", 2, "JSONExtractFloat", 2,
2, "jsonStringify", 1, 32, "{\"a\":\"hello\"}", 32, "a", 2, "JSONExtractFloat", 2, 2, "jsonStringify", 1, 2, "print", 2,
35, 32, "{\"a\":123.1}", 32, "a", 2, "JSONExtractString", 2, 2, "jsonStringify", 1, 32, "{\"a\":\"hello\"}", 32, "a", 2,
"JSONExtractString", 2, 2, "jsonStringify", 1, 2, "print", 2, 35, 32, "{\"a\":123}", 32, "a", 2, "JSONExtractArrayRaw",
2, 2, "jsonStringify", 1, 32, "{\"a\":\"hello\"}", 32, "a", 2, "JSONExtractArrayRaw", 2, 2, "jsonStringify", 1, 2,
"print", 2, 35, 32, "{\"a\":[]}", 32, "a", 2, "JSONExtractArrayRaw", 2, 2, "jsonStringify", 1, 32,
Expand Down
2 changes: 1 addition & 1 deletion hogvm/__tests__/__snapshots__/stl.js
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ print(dateAdd("day", 1, toDate("2024-12-18")), dateDiff("day", toDate("2024-12-1
print(dateTrunc("day", toDateTime("2024-12-18T12:34:56Z")));
print(addDays(toDate("2024-12-18"), 3));
print(toIntervalDay(5), toIntervalMonth(2));
print(today());
print(__x_typeof(today()));
print("");
print("-- json --");
print(jsonStringify(JSONExtractInt("{\"a\":123.1}", "a")), jsonStringify(JSONExtractInt("{\"a\":\"hello\"}", "a")));
Expand Down
2 changes: 1 addition & 1 deletion hogvm/__tests__/__snapshots__/stl.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Date(2024, 12, 19) 5
DateTime(1734480000.0, 'UTC')
Date(2024, 12, 21)
{'__hogInterval__': true, 'value': 5, 'unit': 'day'} {'__hogInterval__': true, 'value': 2, 'unit': 'month'}
Date(2024, 12, 19)
date

-- json --
123 null
Expand Down
2 changes: 1 addition & 1 deletion hogvm/__tests__/stl.hog
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ print(dateAdd('day', 1, toDate('2024-12-18')), dateDiff('day', toDate('2024-12-1
print(dateTrunc('day', toDateTime('2024-12-18T12:34:56Z')))
print(addDays(toDate('2024-12-18'), 3))
print(toIntervalDay(5), toIntervalMonth(2))
print(today())
print(typeof(today()))
print('')
print('-- json --')
print(jsonStringify(JSONExtractInt('{"a":123.1}', 'a')), jsonStringify(JSONExtractInt('{"a":"hello"}','a')))
Expand Down

0 comments on commit f91d216

Please sign in to comment.