#!/usr/bin/ruby1.8

require 'barby'

CODEA = Barby::Code128::CODEA
CODEB = Barby::Code128::CODEB
CODEC = Barby::Code128::CODEC

# In libbarby-ruby-0.3, either of the following constructor calls cause
# this exception:
#   /usr/lib/ruby/1.8/barby/barcode/code_128.rb:239:in `characters':
#   private method `split' called for nil:NilClass (NoMethodError)

Barby::Code128.new("alpha#{CODEA}\n#{CODEC}1234#{CODEB}5", 'B')
Barby::Code128.new("", 'B')
