I'm starting to work through SICP using DrRacket. I installed the sicp package, and declared #lang sicp at the top of the unit test file and then (require rackunit "xxx.scm"), but I get an unbound identifier error. Is there a mistake, or is it not possible to use rackunit with the sicp package in this way?
Is it possible to use rackunit in DrRacket with language set to sicp, and if so, how?
145 Views Asked by RodPValley At
1
There are 1 best solutions below
Related Questions in RACKET
- Lambda function not returning any value
- How to programmatically expand the let* family of functions in racket
- How can I combine `raco pkg install --scope-dir` and `raco exe`?
- Scheme Question - How can I check if there are a list of pairs
- How to return in Scheme?
- Racket: Evaluate a hand in Blackjack
- why is this define not an expression?
- Issue writing to JSON file - invalid key
- How can I flatten a racket list recursively?
- Making a deck of cards in Racket
- Function typing in TypedRacket
- What are .rkt~ files and what purpose do they serve?
- Parallel HTTP Requests Deadlock when Run from Dr Racket
- Removing all duplicate integers and sublists from a list
- Racket: Using recursion to make a mergesort function
Related Questions in SICP
- SiCP Exercise 1.45
- How to implement "if" in normal order in Scheme?
- Why is the environment diagram in the following Python code inconsistent with its execution order?
- How Can Lisp be defined in terms of y combinator?
- Eval and Apply in SICP
- Is an iterative process that returns a list with size that increases by iteration any different from an one that returns a scalar?
- Why normal-order and applicative-order evaluation are not giving the same value?
- SICP Environment Diagram with Mermaid.JS
- SICP exercise 5.20
- What's the relevance of make-register accepting an argument (the name of the register) at all?
- Is this program recursive or iterative?
- Chezscheme says "Exception: attempt to apply non-procedure #<void>" when I tried to print a pascal triangle
- How is delay implemented?
- About serializers as a mechanism for dealing with concurrency
- Why an expression using a global variable multiple times reads that variable multiple times instead of just once?
Related Questions in RACKUNIT
- Is there a way to limit or whitelist which files the command "raco test" should execute, based on file names or file extensions?
- Is it possible to use rackunit in DrRacket with language set to sicp, and if so, how?
- Dynamically generating rackunit test-suite: tests pass and also raise exception
- How to get rackunit to display stack trace?
- Monkey-patching with mock objects in Racket
- Logging Output from Racket Tests to File
- RackUnit check-eq? returns false for equal Strings
- Racket strange (require ...) semantics
- How to use a unit-testing framework for a function that has a dynamic output in Racket?
- Create a modified `equal?` function for use with RackUnit
- Rackunit: in-depth check of exception type
- RackUnit source location inside of macros
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You need to use
#%require.#%requireis actually a primitive type in the lowest level of racket and it is slightly different thanrequire:The file you want to test becomes a module so you can use it from other code by providing the identifiers you want to expose:
You can also just require a few needed forms. eg.
errorandtimefromracket/base:A hint on finding out where they are is to search the online manuals or from Help > Racket documentation in DrRacket. Eg. here is an example of searching
errorwhere you have many choices, but the racket prefixed ones are the ones you're looking for.NB: Not all forms are compatible across languages. Eg. R5RS has different pair implementation than
#lang racket