diff --git a/packages/squiggle-lang/__tests__/ReducerProject/ReducerProject_test.res b/packages/squiggle-lang/__tests__/ReducerProject/ReducerProject_test.res index 6b15e04d..9c2557de 100644 --- a/packages/squiggle-lang/__tests__/ReducerProject/ReducerProject_test.res +++ b/packages/squiggle-lang/__tests__/ReducerProject/ReducerProject_test.res @@ -181,3 +181,15 @@ describe("project with include", () => { runFetchFlatBindings(project, "main")->expect->toBe("@{common: 0,x: 1,y: 2}") }) }) + +describe("project with independent sources", () => { + let project = Project.createProject() + Project.setSource(project, "first", "1") + Project.setSource(project, "second", "2") + test("first run order", () => { + expect(Project.getRunOrderFor(project, "first")) == ["first"] + }) + test("first run order", () => { + expect(Project.getRunOrderFor(project, "second")) == ["second"] + }) +})