@malloydata/malloy-tests 0.0.143-dev240418162623 → 0.0.143-dev240419025427
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.143-
|
|
25
|
-
"@malloydata/db-duckdb": "^0.0.143-
|
|
26
|
-
"@malloydata/db-postgres": "^0.0.143-
|
|
27
|
-
"@malloydata/db-snowflake": "^0.0.143-
|
|
28
|
-
"@malloydata/db-trino": "^0.0.143-
|
|
29
|
-
"@malloydata/malloy": "^0.0.143-
|
|
30
|
-
"@malloydata/render": "^0.0.143-
|
|
24
|
+
"@malloydata/db-bigquery": "^0.0.143-dev240419025427",
|
|
25
|
+
"@malloydata/db-duckdb": "^0.0.143-dev240419025427",
|
|
26
|
+
"@malloydata/db-postgres": "^0.0.143-dev240419025427",
|
|
27
|
+
"@malloydata/db-snowflake": "^0.0.143-dev240419025427",
|
|
28
|
+
"@malloydata/db-trino": "^0.0.143-dev240419025427",
|
|
29
|
+
"@malloydata/malloy": "^0.0.143-dev240419025427",
|
|
30
|
+
"@malloydata/render": "^0.0.143-dev240419025427",
|
|
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.143-
|
|
39
|
+
"version": "0.0.143-dev240419025427"
|
|
40
40
|
}
|
|
@@ -96,6 +96,12 @@ describe.each(runtimes.runtimeList)('%s', (databaseName, runtime) => {
|
|
|
96
96
|
});
|
|
97
97
|
});
|
|
98
98
|
|
|
99
|
+
it('computes mod correctly', async () => {
|
|
100
|
+
await expect(`
|
|
101
|
+
run: ${databaseName}.sql("SELECT 10 as ten") -> {select: mod is 10 % 3}
|
|
102
|
+
`).malloyResultMatches(runtime, {mod: 1});
|
|
103
|
+
});
|
|
104
|
+
|
|
99
105
|
// Model based version of sums.
|
|
100
106
|
it('model: expression fixups.', async () => {
|
|
101
107
|
await expect(`
|