debian/bullseye
debian/jessie
|
Last change
on this file since ec44191 was 1c22429, checked in by Joachim Langenbach <joachim.langenbach@…>, 10 years ago |
- gnuboat_epd adds the apt repository from gnuboat to install epd-fuse package
|
-
Property mode
set to
100755
|
|
File size:
532 bytes
|
| Line | |
|---|
| 1 | #! /usr/bin/env ruby -S rspec
|
|---|
| 2 | require 'spec_helper_acceptance'
|
|---|
| 3 |
|
|---|
| 4 | describe 'chomp function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
|
|---|
| 5 | describe 'success' do
|
|---|
| 6 | it 'should eat the newline' do
|
|---|
| 7 | pp = <<-EOS
|
|---|
| 8 | $input = "test\n"
|
|---|
| 9 | if size($input) != 5 {
|
|---|
| 10 | fail("Size of ${input} is not 5.")
|
|---|
| 11 | }
|
|---|
| 12 | $output = chomp($input)
|
|---|
| 13 | if size($output) != 4 {
|
|---|
| 14 | fail("Size of ${input} is not 4.")
|
|---|
| 15 | }
|
|---|
| 16 | EOS
|
|---|
| 17 |
|
|---|
| 18 | apply_manifest(pp, :catch_failures => true)
|
|---|
| 19 | end
|
|---|
| 20 | end
|
|---|
| 21 | end
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.