Skip to content

Commit

Permalink
TODO: freeze everything
Browse files Browse the repository at this point in the history
  • Loading branch information
Arlen Christian Mart Cuss committed Sep 15, 2012
1 parent ff98f5f commit 5a87a80
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion TODO
Expand Up @@ -34,7 +34,7 @@ core lang
- symbols should have two distinct parts: ns, name
- multi-form defn: (defn x ([a] ...) ([a b] ...))
- seqs
- atoms, refs, agents
- atoms (actually multithreaded), refs, agents
- freeze vectors, lists where approriate
- (. x y)
- destructuring (in FN, LET, everywhere else)
Expand Down
2 changes: 1 addition & 1 deletion lib/boot.rg
Expand Up @@ -209,7 +209,7 @@

(defmacro testing [what & tests]
`(do
(when (= 0 *test-level*)
(when (= [] *test-level*)
(puts))
(puts (* " " (count *test-level*) 2) "testing: " ~what)
(binding [*test-level* (conj *test-level* ~what)]
Expand Down
4 changes: 4 additions & 0 deletions spec/reader_spec.rb
Expand Up @@ -64,6 +64,10 @@
Rouge.read("\"\\a\\b\\e\\f\\n\\r\"").should eq "\a\b\e\f\n\r"
Rouge.read("\"\\s\\t\\v\"").should eq "\s\t\v"
end

it "should read strings as frozen" do
Rouge.read("\"bah\"").frozen?.should be_true
end
end

describe "lists" do
Expand Down

0 comments on commit 5a87a80

Please sign in to comment.