Sha256: 06a92005abbc6f1d3ff882dd5ec7ab6843b98bf99c9a190412dec75a85087771

Contents?: true

Size: 1.54 KB

Versions: 119

Compression:

Stored size: 1.54 KB

Contents

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

exercise_comment: '# The name of this exercise.'
module_comment: "# $ENV{EXERCISM} is for tests not directly for the exercise, don't worry about these :)"
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.'
done_testing_comment: '# There are no more tests after this :)'
cdata_test_comment: '# Ignore this for your exercise! Tells Exercism folks when exercise cases become out of date.'
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!
INIT_comment: |-
  # 'INIT' is a phaser, it makes sure that the test data is available before everything else
  # starts running (otherwise we'd have to shove the test data into the middle of the file!)

example: |-
  sub hey {
    my ($text) = @_;
    return 'Fine. Be that way!'
      if $text =~ /^\s*$/;
    return 'Whoa, chill out!'
      if uc($text) eq $text and $text =~ /\p{Uppercase}/;
    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

119 entries across 119 versions & 1 rubygems

Version Path
trackler-2.2.1.44 tracks/perl5/exercises/bob/example.yaml
trackler-2.2.1.43 tracks/perl5/exercises/bob/example.yaml
trackler-2.2.1.42 tracks/perl5/exercises/bob/example.yaml
trackler-2.2.1.41 tracks/perl5/exercises/bob/example.yaml
trackler-2.2.1.40 tracks/perl5/exercises/bob/example.yaml
trackler-2.2.1.39 tracks/perl5/exercises/bob/example.yaml
trackler-2.2.1.38 tracks/perl5/exercises/bob/example.yaml
trackler-2.2.1.37 tracks/perl5/exercises/bob/example.yaml
trackler-2.2.1.36 tracks/perl5/exercises/bob/example.yaml
trackler-2.2.1.35 tracks/perl5/exercises/bob/example.yaml
trackler-2.2.1.34 tracks/perl5/exercises/bob/example.yaml
trackler-2.2.1.33 tracks/perl5/exercises/bob/example.yaml
trackler-2.2.1.32 tracks/perl5/exercises/bob/example.yaml
trackler-2.2.1.31 tracks/perl5/exercises/bob/example.yaml
trackler-2.2.1.30 tracks/perl5/exercises/bob/example.yaml
trackler-2.2.1.29 tracks/perl5/exercises/bob/example.yaml
trackler-2.2.1.28 tracks/perl5/exercises/bob/example.yaml
trackler-2.2.1.27 tracks/perl5/exercises/bob/example.yaml
trackler-2.2.1.26 tracks/perl5/exercises/bob/example.yaml
trackler-2.2.1.25 tracks/perl5/exercises/bob/example.yaml