Sha256: 2f484df3378033cb0fb6c6474f003ecef0997d2b738e40ed076cef335e276804

Contents?: true

Size: 542 Bytes

Versions: 1

Compression:

Stored size: 542 Bytes

Contents

# load 'betwnstr' procedure into the database
require "betwnstr"

describe "Between string" do
  it "should be correct in normal case" do
    expect(plsql.betwnstr('abcdefg', 2, 5)).to eq 'bcde'
  end

  it "should be correct with zero start value" do
    expect(plsql.betwnstr('abcdefg', 0, 5)).to eq 'abcde'
  end

  it "should be correct with way big end value" do
    expect(plsql.betwnstr('abcdefg', 5, 500)).to eq 'efg'
  end

  it "should be correct with NULL string" do
    expect(plsql.betwnstr(NULL, 5, 500)).to eq NULL
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-plsql-spec-0.5.0 examples/spec/betwnstr_spec.rb