From e2f807391b1454536733c24656ff93c6675b0428 Mon Sep 17 00:00:00 2001 From: pjht Date: Sun, 1 Oct 2017 09:13:53 -0500 Subject: [PATCH] Add first test --- spec/compiler_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 spec/compiler_spec.rb 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