@malloydata/malloy-tests 0.0.176-dev240821203814 → 0.0.176-dev240823154932

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -21,13 +21,13 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "@jest/globals": "^29.4.3",
24
- "@malloydata/db-bigquery": "^0.0.176-dev240821203814",
25
- "@malloydata/db-duckdb": "^0.0.176-dev240821203814",
26
- "@malloydata/db-postgres": "^0.0.176-dev240821203814",
27
- "@malloydata/db-snowflake": "^0.0.176-dev240821203814",
28
- "@malloydata/db-trino": "^0.0.176-dev240821203814",
29
- "@malloydata/malloy": "^0.0.176-dev240821203814",
30
- "@malloydata/render": "^0.0.176-dev240821203814",
24
+ "@malloydata/db-bigquery": "^0.0.176-dev240823154932",
25
+ "@malloydata/db-duckdb": "^0.0.176-dev240823154932",
26
+ "@malloydata/db-postgres": "^0.0.176-dev240823154932",
27
+ "@malloydata/db-snowflake": "^0.0.176-dev240823154932",
28
+ "@malloydata/db-trino": "^0.0.176-dev240823154932",
29
+ "@malloydata/malloy": "^0.0.176-dev240823154932",
30
+ "@malloydata/render": "^0.0.176-dev240823154932",
31
31
  "jsdom": "^22.1.0",
32
32
  "luxon": "^2.4.0",
33
33
  "madge": "^6.0.0"
@@ -36,5 +36,5 @@
36
36
  "@types/jsdom": "^21.1.1",
37
37
  "@types/luxon": "^2.4.0"
38
38
  },
39
- "version": "0.0.176-dev240821203814"
39
+ "version": "0.0.176-dev240823154932"
40
40
  }
@@ -93,6 +93,16 @@ describe.each(runtimes.runtimeList)('%s date and time', (dbName, runtime) => {
93
93
  ).isSqlEq();
94
94
  });
95
95
 
96
+ test.when(!brokenIn('snowflake', dbName))(
97
+ 'timeDiff passed to a function preserves rhs',
98
+ async () => {
99
+ await expect(`
100
+ run: ${dbName}.sql("SELECT 1")
101
+ -> { select: yd is floor(days(@2001 to @2002)) }
102
+ `).malloyResultMatches(runtime, {yd: 365});
103
+ }
104
+ );
105
+
96
106
  // MTOY TODO remove or implment
97
107
  // These all are complicated by civul time issues, skipping for now
98
108
  // test.skip('weeks', async () => {