diff --git a/spec/compiler_spec.rb b/spec/compiler_spec.rb new file mode 100644 index 0000000..992599e --- /dev/null +++ b/spec/compiler_spec.rb @@ -0,0 +1,6 @@ +require_relative "../compiler.rb" +describe "compile" do + it "handles int definitions" do + expect(compile("var int number")).to eq [{"number"=>0}, ""] + end +end