spec/date_spec.rb in nydp-0.3.0 vs spec/date_spec.rb in nydp-0.4.0
- old
+ new
@@ -58,11 +58,11 @@
it "works with builtin greater-than when true" do
f = Nydp::Builtin::GreaterThan.instance
f.invoke vm, pair_list([d1, d0])
- expect(vm.args.pop).to eq Nydp::T
+ expect(vm.args.pop).to eq d0
end
it "compares with nil" do
f = Nydp::Builtin::GreaterThan.instance
@@ -84,10 +84,10 @@
it "works with builtin less-than when true" do
f = Nydp::Builtin::LessThan.instance
f.invoke vm, pair_list([d0, d1])
- expect(vm.args.pop).to eq Nydp::T
+ expect(vm.args.pop).to eq d1
end
it "works with builtin less-than when false" do
f = Nydp::Builtin::LessThan.instance