require_relative "../test-util" module TestEvalator extend Pione::Util::Evaluatable end describe "Pione::System::Evaluatable" do it "should evaluate and get PIONE model object" do TestEvalator.val!("1").should == PioneInteger.new(1).to_seq TestEvalator.val!('"A"').should == PioneString.new("A").to_seq end it "should evaluate and get the result string" do TestEvalator.val("1").should == "1" TestEvalator.val('"A"').should == "A" end end