0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-25 11:17:50 +01:00
posthog/hogvm/__tests__/properties.hog

81 lines
1.4 KiB
Plaintext
Raw Normal View History

{
let r := [1, 2, {'d': (1, 3, 42, 6)}]
print(r.2.d.1)
}
{
let r := [1, 2, {'d': (1, 3, 42, 6)}]
print(r[2].d[2])
}
{
let r := [1, 2, {'d': (1, 3, 42, 6)}]
print(r.2['d'][3])
}
{
let r := {'d': (1, 3, 42, 6)}
print(r.d.1)
}
{
let r := [1, 2, {'d': [1, 3, 42, 3]}]
r.2.d.2 := 3
print(r.2.d.2)
}
{
let r := [1, 2, {'d': [1, 3, 42, 3]}]
r[2].d[2] := 3
print(r[2].d[2])
}
{
let r := [1, 2, {'d': [1, 3, 42, 3]}]
r[2].c := [666]
print(r[2])
}
{
let r := [1, 2, {'d': [1, 3, 42, 3]}]
r[2].d[2] := 3
print(r[2].d)
}
{
let r := [1, 2, {'d': [1, 3, 42, 3]}]
r.2['d'] := ['a', 'b', 'c', 'd']
print(r[2].d[2])
}
{
let r := [1, 2, {'d': [1, 3, 42, 3]}]
let g := 'd'
r.2[g] := ['a', 'b', 'c', 'd']
print(r[2].d[2])
}
{
let event := {
'event': '$pageview',
'properties': {
'$browser': 'Chrome',
'$os': 'Windows'
}
}
event['properties']['$browser'] := 'Firefox'
print(event)
}
{
let event := {
'event': '$pageview',
'properties': {
'$browser': 'Chrome',
'$os': 'Windows'
}
}
event.properties.$browser := 'Firefox'
print(event)
}
{
let event := {
'event': '$pageview',
'properties': {
'$browser': 'Chrome',
'$os': 'Windows'
}
}
let config := {}
print(event)
}