a.rb in map-5.2.0 vs a.rb in map-5.3.0
- old
+ new
@@ -1,31 +1,9 @@
# -*- encoding : utf-8 -*-
-require 'map'
+require './lib/map.rb'
-args = [0, 1, {:k => :v, :a => false}]
+args = [0, 1, {:k=>:v, :a=>false}]
+
opts = Map.options_for!(args)
-#p args.object_id
-#p opts.arguments.object_id
-#p !args.last.is_a?(Hash)
-#puts
-#puts
-
-new_args = [0, 1, opts]
-new_opts = Map.options_for!(new_args)
-#p new_opts.popped?
-p new_args
p args
-#p !new_args.last.is_a?(Hash)
-#p new_opts.arguments.object_id
-#p new_args.object_id
-
-puts
-puts
-__END__
-
-puts '---'
-
-p opts.arguments
-p args
-
-
+p opts