spec/symbol_spec.rb in nydp-0.1.13.2 vs spec/symbol_spec.rb in nydp-0.1.14
- old
+ new
@@ -45,33 +45,33 @@
it "works with builtin greater-than when true" do
f = Nydp::Builtin::GreaterThan.new
f.invoke vm, pair_list([foo, bar])
- expect(vm.pop_arg).to eq Nydp.T
+ expect(vm.args.pop).to eq Nydp.T
end
it "works with builtin greater-than when false" do
f = Nydp::Builtin::GreaterThan.new
f.invoke vm, pair_list([bar, foo])
- expect(vm.pop_arg).to eq Nydp.NIL
+ expect(vm.args.pop).to eq Nydp.NIL
end
it "works with builtin less-than when true" do
f = Nydp::Builtin::LessThan.new
f.invoke vm, pair_list([bar, foo])
- expect(vm.pop_arg).to eq Nydp.T
+ expect(vm.args.pop).to eq Nydp.T
end
it "works with builtin less-than when false" do
f = Nydp::Builtin::LessThan.new
f.invoke vm, pair_list([foo, bar])
- expect(vm.pop_arg).to eq Nydp.NIL
+ expect(vm.args.pop).to eq Nydp.NIL
end
end