test/util/spec_evaluatable.rb in pione-0.2.2 vs test/util/spec_evaluatable.rb in pione-0.3.0
- old
+ new
@@ -1,14 +1,14 @@
-require_relative "../test-util"
+require 'pione/test-helper'
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
+ TestEvalator.val!("1").should == Lang::IntegerSequence.of(1)
+ TestEvalator.val!('"A"').should == Lang::StringSequence.of("A")
end
it "should evaluate and get the result string" do
TestEvalator.val("1").should == "1"
TestEvalator.val('"A"').should == "A"