Sha256: 6a187eda250a3feb84e4b90467863ba96453ec793634582c47683d62e3bcca80
Contents?: true
Size: 873 Bytes
Versions: 10
Compression:
Stored size: 873 Bytes
Contents
Feature: Pretty-print Kernel#qq pretty-prints its arguments and prints them, one per line. This is just like Kernel#pp from the pp library, except that it writes to $stderr by default. Scenario: One argument Given a file with: """ require "cute_print" a = [ "Once upon a time there were four little Rabbits, and their names were", "Flopsy,", "Mopsy,", "Cotton-tail, and", "Peter.", ] qq a """ Then stderr should be """ ["Once upon a time there were four little Rabbits, and their names were", "Flopsy,", "Mopsy,", "Cotton-tail, and", "Peter."] """ Scenario: Two arguments Given a file with: """ require "cute_print" qq 1, "foo" """ Then stderr should be """ 1 "foo" """
Version data entries
10 entries across 10 versions & 1 rubygems