Sha256: 46e3efab92813a5bd8aa4caae9d11341784945d43507223eca8fe8fbf23e3fd1

Contents?: true

Size: 1.13 KB

Versions: 48

Compression:

Stored size: 1.13 KB

Contents

exercise: Bob
version: 4
plan: 26
subs: hey
tests: |-
  is hey($_->{input}{heyBob}), $_->{expected}, $_->{description} foreach @{$C_DATA->{cases}};

exercise_comment: '# The name of this exercise.'
version_comment: '# The version we will be matching against the exercise.'
lib_comment: '# Look for the module inside the same directory as this test file.'
plan_comment: '# This is how many tests we expect to run.'
use_test_comment: '# Check that the module can be use-d.'
version_test_comment: |-
  # If the exercise is updated, we want to make sure other people testing
  # your code don't think you've made a mistake if things have changed!

example: |-
  sub hey {
    my ($text) = @_;
    if (uc($text) eq $text && $text =~ /\p{Uppercase}/) {
      return 'Calm down, I know what I\'m doing!' if $text =~ /\?\s*$/;
      return 'Whoa, chill out!';
    }
    return 'Fine. Be that way!' if $text =~ /^\s*$/;
    return 'Sure.' if $text =~ /\?\s*$/;
    return 'Whatever.';
  }

stub: |-
  sub hey {
    my ($msg) = @_;
    # Remove the comments and write some code here to pass the test suite.
  }

package_comment: "# Declare package 'Bob' with version"

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/perl5/exercises/bob/.meta/exercise-data.yaml
trackler-2.2.1.179 tracks/perl5/exercises/bob/.meta/exercise-data.yaml
trackler-2.2.1.178 tracks/perl5/exercises/bob/.meta/exercise-data.yaml
trackler-2.2.1.177 tracks/perl5/exercises/bob/.meta/exercise-data.yaml
trackler-2.2.1.176 tracks/perl5/exercises/bob/.meta/exercise-data.yaml
trackler-2.2.1.175 tracks/perl5/exercises/bob/.meta/exercise-data.yaml
trackler-2.2.1.174 tracks/perl5/exercises/bob/.meta/exercise-data.yaml
trackler-2.2.1.173 tracks/perl5/exercises/bob/.meta/exercise-data.yaml
trackler-2.2.1.172 tracks/perl5/exercises/bob/.meta/exercise-data.yaml
trackler-2.2.1.171 tracks/perl5/exercises/bob/.meta/exercise-data.yaml
trackler-2.2.1.170 tracks/perl5/exercises/bob/.meta/exercise-data.yaml
trackler-2.2.1.169 tracks/perl5/exercises/bob/.meta/exercise-data.yaml
trackler-2.2.1.167 tracks/perl5/exercises/bob/.meta/exercise-data.yaml
trackler-2.2.1.166 tracks/perl5/exercises/bob/.meta/exercise-data.yaml
trackler-2.2.1.165 tracks/perl5/exercises/bob/.meta/exercise-data.yaml
trackler-2.2.1.164 tracks/perl5/exercises/bob/.meta/exercise-data.yaml
trackler-2.2.1.163 tracks/perl5/exercises/bob/.meta/exercise-data.yaml
trackler-2.2.1.162 tracks/perl5/exercises/bob/.meta/exercise-data.yaml
trackler-2.2.1.161 tracks/perl5/exercises/bob/.meta/exercise-data.yaml
trackler-2.2.1.160 tracks/perl5/exercises/bob/.meta/exercise-data.yaml