File: position_spec.rb

package info (click to toggle)
ruby-parslet 1.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 908 kB
  • ctags: 473
  • sloc: ruby: 5,220; makefile: 2
file content (10 lines) | stat: -rw-r--r-- 198 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
# Encoding: UTF-8

require 'spec_helper'

describe Parslet::Position do
  slet(:position) { described_class.new('öäüö', 4) }

  its(:charpos) { should == 2 }
  its(:bytepos) { should == 4 } 
end