Sha256: c9ea5b3b7d4538d0b1ca8eff61d615a56ec0e60d606509941fc94eb6fcec8889
Contents?: true
Size: 462 Bytes
Versions: 2
Compression:
Stored size: 462 Bytes
Contents
require "rspec" require "shuwar" describe Shuwar::Stdlib::Base do def rt; Shuwar::Runtime.new; end def run(obj) rt.evaluate obj end it "has a working load" do run [:load, [:quote, :nokogiri]] end it "has a working begin" do expect(run [:begin, 1, 2]).to eq 2 end it "has a working print" do run [:print, 1] end it "has a working puts" do run [:puts, 1] end # Marcos seems to have been tested in runtime_spec end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
shuwar-1.3.0 | spec/stdlib/base_spec.rb |
shuwar-1.2.0 | spec/stdlib/base_spec.rb |