-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2938 from quantified-uncertainty/Doc-refactors-Jan-8
Generic doc cleanup
- Loading branch information
Showing
34 changed files
with
696 additions
and
481 deletions.
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
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
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
25 changes: 12 additions & 13 deletions
25
packages/squiggle-lang/__tests__/library/examples_test.ts
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 |
---|---|---|
@@ -1,19 +1,18 @@ | ||
import { registry } from "../../src/library/registry/index.js"; | ||
import { evaluateStringToResult } from "../../src/reducer/index.js"; | ||
|
||
test.each(registry.allExamplesWithFns())( | ||
"tests of example $example", | ||
async ({ fn, example }) => { | ||
const result = await evaluateStringToResult(example); | ||
test.each( | ||
registry.allExamplesWithFns().filter(({ example }) => example.useForTests) | ||
)("tests of example $example", async ({ fn, example }) => { | ||
const result = await evaluateStringToResult(example.text); | ||
|
||
if (!result.ok) { | ||
throw new Error(`Can't test type, with error: ${result.value}`); | ||
} | ||
|
||
if (fn.output !== undefined) { | ||
expect(result.value.type).toEqual(fn.output); | ||
} | ||
if (!result.ok) { | ||
throw new Error(`Can't test type, with error: ${result.value}`); | ||
} | ||
|
||
expect(result.ok).toBe(true); | ||
if (fn.output !== undefined) { | ||
expect(result.value.type).toEqual(fn.output); | ||
} | ||
); | ||
|
||
expect(result.ok).toBe(true); | ||
}); |
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
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
Oops, something went wrong.
cfbbdca
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
squiggle-components – ./packages/components
squiggle-components.vercel.app
squiggle-components-git-main-quantified-uncertainty.vercel.app
squiggle-components-quantified-uncertainty.vercel.app
preview-components.squiggle-language.com
components.squiggle-language.com
cfbbdca
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
quri-hub – ./packages/hub
quri-hub-quantified-uncertainty.vercel.app
quri-hub-git-main-quantified-uncertainty.vercel.app
squiggle-hub.org
www.squigglehub.org
squigglehub.org
www.squigglehub.com
squigglehub.com
www.squiggle-hub.org
squiggle-hub.com
www.squiggle-hub.com
cfbbdca
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
squiggle-website – ./packages/website
squiggle-website-git-main-quantified-uncertainty.vercel.app
squiggle-website-quantified-uncertainty.vercel.app
preview.squiggle-language.com
squiggle-language.com
www.squiggle-language.com