{"id":17214475,"url":"https://github.com/suzannesoy/repltest","last_synced_at":"2026-01-06T04:46:34.652Z","repository":{"id":62424366,"uuid":"55077028","full_name":"SuzanneSoy/repltest","owner":"SuzanneSoy","description":"REPLtest: Copy-paste your REPL interactions, and have them run as tests","archived":false,"fork":false,"pushed_at":"2021-04-04T14:29:05.000Z","size":30,"stargazers_count":2,"open_issues_count":11,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-30T11:42:06.592Z","etag":null,"topics":["racket-library"],"latest_commit_sha":null,"homepage":"http://docs.racket-lang.org/repltest/","language":"Racket","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SuzanneSoy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-30T15:59:50.000Z","updated_at":"2021-12-07T17:42:06.000Z","dependencies_parsed_at":"2022-11-01T18:01:44.033Z","dependency_job_id":null,"html_url":"https://github.com/SuzanneSoy/repltest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuzanneSoy%2Frepltest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuzanneSoy%2Frepltest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuzanneSoy%2Frepltest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuzanneSoy%2Frepltest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SuzanneSoy","download_url":"https://codeload.github.com/SuzanneSoy/repltest/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245467105,"owners_count":20620209,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["racket-library"],"created_at":"2024-10-15T03:03:20.848Z","updated_at":"2026-01-06T04:46:34.613Z","avatar_url":"https://github.com/SuzanneSoy.png","language":"Racket","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status,](https://img.shields.io/travis/jsmaniac/repltest/main.svg)](https://travis-ci.org/jsmaniac/repltest)\n[![Coverage Status,](https://img.shields.io/coveralls/jsmaniac/repltest/main.svg)](https://coveralls.io/github/jsmaniac/repltest)\n[![Build Stats,](https://img.shields.io/badge/build-stats-blue.svg)](http://jsmaniac.github.io/travis-stats/#jsmaniac/repltest)\n[![Online Documentation,](https://img.shields.io/badge/docs-online-blue.svg)](http://docs.racket-lang.org/repltest/)\n[![Maintained as of 2018.](https://img.shields.io/maintenance/yes/2018.svg)](https://github.com/jsmaniac/repltest/issues)\n\nREPLtest\n========\n\nThis package provides the `#lang repltest` meta-language, which can be\nused to turn the transcript of an interactive racket session into a\nseries of tests.\n\nInstallation\n------------\n\nInstall this package with:\n\n```\nraco pkg install --deps search-auto repltest\n```\n\nUsage\n-----\n\nWrite a file using the repltest meta-language, containing definitions at the\ntop and interactions after the first prompt (by default the prompt is `\"\u003e \"`,\nI will add customization options later). Each prompt is followed by a single\nexpression and by the expected result.\n\n```\n#lang debug repltest typed/racket\n;; There is a problem if there is a comment before a prompt, as comments\n;; are not gobbled-up by the preceding read. This will be fixed in a\n;; later version.\n(define x 0)\n(define y 1)\n'displayed\n(displayln \"displayed too\")\n\n\u003e (+ 1 1)\n- : Integer [more precisely: Positive-Index]\n2\n\u003e x\n- : Integer [more precisely: Zero]\n0\n\u003e (values x y)\n- : (values Integer Integer) [more precisely: (Values Zero One)]\n0\n1\n\u003e #R(+ 2 0)\n(+ 2 0) = 2\n- : Integer [more precisely: Positive-Byte]\n2\n```\n\nWhen the `test` submodule of this file is executed (e.g. with `raco\ntest file.rkt`), `repltest` runs the expression after each `\u003e `\nprompt, and checks the expected result is produced.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuzannesoy%2Frepltest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuzannesoy%2Frepltest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuzannesoy%2Frepltest/lists"}