Sha256: 01e093aa28dee7a3423db809decba7d65d1e664de636b34e1e49121e723c76be

Contents?: true

Size: 702 Bytes

Versions: 10

Compression:

Stored size: 702 Bytes

Contents

Feature: Pretty-print with source

  Kernel#pp, if given a block, prints the source for the block and then
  the pretty-printed result of running the block.

  Scenario: Label and pretty-print an object
    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
      """
      a is ["Once upon a time there were four little Rabbits, and their names were",
            "Flopsy,",
            "Mopsy,",
            "Cotton-tail, and",
            "Peter."]
 
      """

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
cute_print-1.1.4 features/pretty_print/pretty_print_with_source.feature
cute_print-1.1.3 features/pretty_print/pretty_print_with_source.feature
cute_print-1.1.2 features/pretty_print/pretty_print_with_source.feature
cute_print-1.1.1 features/pretty_print/pretty_print_with_source.feature
cute_print-1.1.0 features/pretty_print/pretty_print_with_source.feature
cute_print-1.0.1 features/pretty_print/pretty_print_with_source.feature
cute_print-1.0.0 features/pretty_print/pretty_print_with_source.feature
cute_print-0.4.0 features/pretty_print/pretty_print_with_source.feature
cute_print-0.3.0 features/pretty_print/pretty_print_with_source.feature
cute_print-0.2.0 features/pretty_print/pretty_print_with_source.feature