https://github.com/christian-byrne/sml-test-scripts
functional programming 2024
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (6.6%) to scientific vocabulary
Repository
functional programming 2024
Basic Info
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
[!NOTE]
By default, tests are discovered by looking for sml files that start with
test_in thetestsdirectory.
Setup
sh
chmod +x ./install
./install
Run tests
./test
Options
```sh usage: ./test [-h] [-x] [--cache-path CACHEPATH] [--cache-show [CACHESHOW]] [--cache-clear] [-k EXPRESSION] [--lf] [--ff] [--nf] [--sw-skip] [--maxfail MAXFAIL] [--collect-only] [--ignore IGNORE] [--ignore-glob IGNOREGLOB] [--rootdir ROOTDIR] [--log-file LOG_FILE] [--log-file-level {NOTSET,DEBUG,INFO,WARNING,ERROR,CRITICAL}] [--log-file-format LOGFILEFORMAT] [--log-file-date-format LOGFILEDATEFORMAT] [--log-cli-level {NOTSET,DEBUG,INFO,WARNING,ERROR,CRITICAL}] [--log-cli-format LOGCLIFORMAT] [--log-cli-date-format LOGCLIDATEFORMAT] [--log-disable-file LOGDISABLE_FILE]
options: -h, --help show this help message and exit -x, --exitfirst Exit instantly on first error or failed test. --cache-path CACHEPATH Path to cache file. --cache-show [CACHESHOW] Show cache contents. --cache-clear Remove all cache contents at the start of the test run. -k EXPRESSION, --expression EXPRESSION Only run tests which match the given substring expression. --lf, --last-failed Rerun only the tests that failed at the last run. --ff, --failed-first Run all tests but run the last failures first. --nf, --new-first Run tests from new files first. --sw-skip, --stepwise-skip Ignore the first failing test but stop on the next one. --maxfail MAXFAIL Exit after the first num failures. --collect-only, --co Only collect tests, don’t execute them. --ignore IGNORE Ignore path during collection (multi-allowed). --ignore-glob IGNOREGLOB Ignore path pattern during collection (multi-allowed). --rootdir ROOTDIR Define root directory for tests. --log-file LOGFILE Path to a log file. --log-file-level {NOTSET,DEBUG,INFO,WARNING,ERROR,CRITICAL} Level of messages to catch/display (default depends on the root log handler). --log-file-format LOGFILEFORMAT Log format used by the logging module. --log-file-date-format LOGFILEDATEFORMAT Log date format used by the logging module. --log-cli-level {NOTSET,DEBUG,INFO,WARNING,ERROR,CRITICAL} CLI logging level. --log-cli-format LOGCLIFORMAT CLI log format. --log-cli-date-format LOGCLIDATEFORMAT CLI log date format. --log-disable-file LOGDISABLEFILE Disable log file output.
```
Writing Tests
Example Source file:
```sml (* src/program.sml *)
fun factorial(0) = 1 | factorial(n) = n * factorial(n - 1); ```
Example Test file:
```sml (* tests/testprogramfactorial.sml *)
use "src/program.sml"; use "tests/utils.sml";
val testCasesFactorial = [ (factorial, 0, 1), (* 0! = 1 ) (factorial, 1, 1), ( 1! = 1 ) (factorial, 2, 2), ( 2! = 2 ) (factorial, 3, 6), ( 3! = 6 ) (factorial, 4, 24), ( 4! = 24 *) ];
runTestCasesIntInt(testCasesFactorial); ```
SML Wiki/Reference
Builds local SML wiki site and opens it in the browser.
sh
./start-wiki
Changes can be made to the wiki by changing files in wiki/docs
Lectura Scripts
Set credentials in .env file (.env.example)
Connect Lectura
sh
./connect-lectura
Press Ctrl+V
Submit Lectura
sh
./submit-lectura <path-to-file>
Press Ctrl+V
Owner
- Name: Christian Byrne
- Login: christian-byrne
- Kind: user
- Location: San Francisco
- Company: Comfy-Org
- Twitter: c__byrne
- Repositories: 100
- Profile: https://github.com/christian-byrne
GitHub Events
Total
- Delete event: 1
- Push event: 6
- Pull request event: 2
- Create event: 1
Last Year
- Delete event: 1
- Push event: 6
- Pull request event: 2
- Create event: 1
Committers
Last synced: about 1 year ago
Top Committers
| Name | Commits | |
|---|---|---|
| christian-byrne | a****m@g****m | 60 |
Issues and Pull Requests
Last synced: about 1 year ago
All Time
- Total issues: 0
- Total pull requests: 7
- Average time to close issues: N/A
- Average time to close pull requests: 1 minute
- Total issue authors: 0
- Total pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.0
- Merged pull requests: 7
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 7
- Average time to close issues: N/A
- Average time to close pull requests: 1 minute
- Issue authors: 0
- Pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.0
- Merged pull requests: 7
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
- christian-byrne (12)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- actions/checkout v3 composite
- actions/checkout v3 composite
- actions/checkout v3 composite
- 1037 dependencies
- @docusaurus/module-type-aliases 2.1.0 development
- @docusaurus/core 2.1.0
- @docusaurus/preset-classic 2.1.0
- @docusaurus/theme-search-algolia ^2.3.1
- @mdx-js/react ^1.6.22
- clsx ^1.2.1
- hast-util-is-element ^1.1.0
- prism-react-renderer ^1.3.5
- react ^17.0.2
- react-dom ^17.0.2
- rehype-katex ^5.0.0
- remark-math ^3.0.1
- rich *