AAers/vagrant/work/received-2019/to-be-uploaded/2021-
package sexpr import ( “math/big” “testing” ) func TestSExprNil(t *testing.T) { se := mkNil() if !se.isNil() { t.Errorf(“expected isNil() to return true”) } if !se.isAtom()…
;;;;;;;;;;;;;;;;;;;;;;;; ;;; pre-testing prep ;;; ;;;;;;;;;;;;;;;;;;;;;;;; (load “../lisp-unit.lisp”) (use-package :lisp-unit) (load “matrix.lisp”) (remove-tests :all) (setq *print-failures* t) ;;;;;;;;;;;;;;;;;;;;;;;; ;;; test definitions ;;; ;;;;;;;;;;;;;;;;;;;;;;;; (define-test test-are-adjacent…
package sexpr import ( “errors” //”math/big” // You will need to use this package in your implementation. ) // ErrEval is the error value returned…
package sexpr import ( “math/big” “testing” ) func buildNilExample() *SExpr { return mkNil() } func buildNumberExample() *SExpr { return mkNumber(big.NewInt(100)) } func buildSymbolExample() *SExpr {…
package sexpr import ( “fmt” “math/big” ) // SExpr defines the struct of an S-expression. // 1. If this S-expression is `NIL`: all `atom`, `car`…
;; You may define helper functions here (defun reachable (transition start final input) ;; TODO: Incomplete function ;; The next line should not be in…
Cryptography basics – Integrity: Hashes and MACs ECEN 4133 Jan 19, 2021 Alice and Bob Alice wants to send message m to Bob ◦ Can’t…
#include #include int a = 42; int main(int argc, char *argv[]) { int b = 23; printf(“Hello world! ”); fork(); printf(“My favorite number is %d.…
#include #include #include int main(void) { if (fork() > 0) /* Forces parent to wait for child * to force scheduling order */ wait(NULL); printf(“My…