@malloydata/malloy-tests 0.0.142 → 0.0.143-dev240416173709

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.142",
25
- "@malloydata/db-duckdb": "^0.0.142",
26
- "@malloydata/db-postgres": "^0.0.142",
27
- "@malloydata/db-snowflake": "^0.0.142",
28
- "@malloydata/db-trino": "^0.0.142",
29
- "@malloydata/malloy": "^0.0.142",
30
- "@malloydata/render": "^0.0.142",
24
+ "@malloydata/db-bigquery": "^0.0.143-dev240416173709",
25
+ "@malloydata/db-duckdb": "^0.0.143-dev240416173709",
26
+ "@malloydata/db-postgres": "^0.0.143-dev240416173709",
27
+ "@malloydata/db-snowflake": "^0.0.143-dev240416173709",
28
+ "@malloydata/db-trino": "^0.0.143-dev240416173709",
29
+ "@malloydata/malloy": "^0.0.143-dev240416173709",
30
+ "@malloydata/render": "^0.0.143-dev240416173709",
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.142"
39
+ "version": "0.0.143-dev240416173709"
40
40
  }
@@ -90,6 +90,17 @@ describe.each(allDucks.runtimeList)('duckdb:%s', (dbName, runtime) => {
90
90
  );
91
91
  });
92
92
 
93
+ it('handles decimal literals', async () => {
94
+ const query = `
95
+ run: duckdb.sql("select 1") -> {
96
+ select:
97
+ n1 is 1.234
98
+ n2 is 1234.0 / 1000
99
+ }
100
+ `;
101
+ await expect(query).malloyResultMatches(runtime, {n1: 1.234, n2: 1.234});
102
+ });
103
+
93
104
  it('can open json files', async () => {
94
105
  await expect(`
95
106
  run: duckdb.table('test/data/duckdb/test.json') -> {