---
cases:
  - note: time/weekday
    query: data.generated.p = x
    modules:
      - |
        package generated

        p := __local0__ if {
        	time.weekday(1517918400000000000, __local1__)
        	__local0__ = __local1__
        }
    data: {}
    want_result:
      - x: Tuesday
