Skip to content

Commit 1702e9a

Browse files
author
David Swan
committed
fix
1 parent 5433852 commit 1702e9a

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

spec/acceptance/strip_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,25 @@
33

44
describe 'strip function' do
55
describe 'success' do
6-
pp = <<-EOS
6+
pp1 = <<-EOS
77
$a = [" the "," public "," art","galleries "]
88
# Anagram: Large picture halls, I bet
99
$o = strip($a)
1010
notice(inline_template('strip is <%= @o.inspect %>'))
1111
EOS
1212
it 'strips arrays' do
13-
apply_manifest(pp, catch_failures: true) do |r|
13+
apply_manifest(pp1, catch_failures: true) do |r|
1414
expect(r.stdout).to match(%r{strip is \["the", "public", "art", "galleries"\]})
1515
end
1616
end
1717

18-
pp = <<-EOS
18+
pp2 = <<-EOS
1919
$a = " blowzy night-frumps vex'd jack q "
2020
$o = strip($a)
2121
notice(inline_template('strip is <%= @o.inspect %>'))
2222
EOS
2323
it 'strips strings' do
24-
apply_manifest(pp, catch_failures: true) do |r|
24+
apply_manifest(pp2, catch_failures: true) do |r|
2525
expect(r.stdout).to match(%r{strip is "blowzy night-frumps vex'd jack q"})
2626
end
2727
end

spec/acceptance/suffix_spec.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,32 @@
33

44
describe 'suffix function' do
55
describe 'success' do
6-
pp = <<-EOS
6+
pp1 = <<-EOS
77
$o = suffix(['a','b','c'],'p')
88
notice(inline_template('suffix is <%= @o.inspect %>'))
99
EOS
1010
it 'suffixes array of values' do
11-
apply_manifest(pp, catch_failures: true) do |r|
11+
apply_manifest(pp1, catch_failures: true) do |r|
1212
expect(r.stdout).to match(%r{suffix is \["ap", "bp", "cp"\]})
1313
end
1414
end
1515

16-
pp = <<-EOS
16+
pp2 = <<-EOS
1717
$o = suffix([],'p')
1818
notice(inline_template('suffix is <%= @o.inspect %>'))
1919
EOS
2020
it 'suffixs with empty array' do
21-
apply_manifest(pp, catch_failures: true) do |r|
21+
apply_manifest(pp2, catch_failures: true) do |r|
2222
expect(r.stdout).to match(%r{suffix is \[\]})
2323
end
2424
end
2525

26-
pp = <<-EOS
26+
pp3 = <<-EOS
2727
$o = suffix(['a','b','c'], undef)
2828
notice(inline_template('suffix is <%= @o.inspect %>'))
2929
EOS
3030
it 'suffixs array of values with undef' do
31-
apply_manifest(pp, catch_failures: true) do |r|
31+
apply_manifest(pp3, catch_failures: true) do |r|
3232
expect(r.stdout).to match(%r{suffix is \["a", "b", "c"\]})
3333
end
3434
end

0 commit comments

Comments
 (0)