-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add iowa-electricity test for CSV loading
- Loading branch information
Showing
1 changed file
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -225,7 +225,7 @@ describe("promise cancellation", () => { | |
}); | ||
|
||
describe("import directives", () => { | ||
it("can load vega-datasets/crimea", async () => { | ||
it("can load crimea.json", async () => { | ||
await init(); | ||
await checkProgram({ | ||
src: `import crimea from "npm://[email protected]/data/crimea.json"`, | ||
|
@@ -262,6 +262,22 @@ describe("import directives", () => { | |
}, | ||
}); | ||
}); | ||
|
||
it("can load iowa-electricity.csv", async () => { | ||
await init(); | ||
await checkProgram({ | ||
src: ` | ||
import iowa from "npm://[email protected]/data/iowa-electricity.csv" | ||
count(value: count[1] { iowa() }). | ||
`, | ||
deps: [], | ||
results: ["iowa", "count"], | ||
input: {}, | ||
output: { | ||
count: [{ value: 51 }], | ||
}, | ||
}); | ||
}); | ||
}); | ||
|
||
describe("aggregation operators", () => { | ||
|