Sha256: c90ba507a351f6d7106d317e8d95186d541c0e31b08461e36d1fb85ba794a806
Contents?: true
Size: 549 Bytes
Versions: 4
Compression:
Stored size: 549 Bytes
Contents
require 'spec_helper' # load 'betwnstr' procedure into the database require "betwnstr" describe "Between string" do it "should be correct in normal case" do plsql.betwnstr('abcdefg', 2, 5).should == 'bcde' end it "should be correct with zero start value" do plsql.betwnstr('abcdefg', 0, 5).should == 'abcde' end it "should be correct with way big end value" do plsql.betwnstr('abcdefg', 5, 500).should == 'efg' end it "should be correct with NULL string" do plsql.betwnstr(NULL, 5, 500).should == NULL end end
Version data entries
4 entries across 4 versions & 1 rubygems