Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbicodes committed Sep 6, 2023
2 parents 762a0d7 + ba47e56 commit 5698ba4
Show file tree
Hide file tree
Showing 5 changed files with 147 additions and 164 deletions.
10 changes: 7 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ import testSuites from './test/tests.json';
import { evalString, deftests, clearTests } from "./src/interpreter"

let editorState = EditorState.create({
doc: `(map-indexed #(when (= 2 %2) [%1 "Hi"]) [1 1 2 2])`,
doc: `((fn ([[exponent bit]]
(if (= "1" bit)
(Math/pow 2 exponent)
0)))
[0 "1"])`,
extensions: [basicSetup, clojure()]
})

Expand Down Expand Up @@ -165,8 +169,8 @@ function testExercisesUntilFail() {
console.log("Fails:", fails)
}

testSolution(randExercise())
//testSolution("binary")
//testSolution(randExercise())
//testSolution("two_fer")
//loadExercise("all_your_base")
//testExercisesUntilFail()
//testExercises()
Loading

0 comments on commit 5698ba4

Please sign in to comment.