Changeset 7945e32a9b7eef5967b116803fde8625b981cdb4
- Timestamp:
- 07/25/08 08:28:41 (6 months ago)
- Author:
- Mark Guzman <segfault@…>
- Parents:
- 286299c5d300ecff2991cf7f9cab8ad33e221a0c
- Children:
- 0d419aa2fa3a57ef424415d027a95857113e74e3
- git-committer:
- Mark Guzman <segfault@hasno.info> / 2008-07-25T08:28:41Z-0400
- Message:
-
added file encoding lines to each .rb file for 1.9
added a check for very large indexes
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r546ed0
|
r7945e3
|
|
| 1 | | # $Id$ |
| | 1 | # encoding: utf-8 |
| 2 | 2 | require 'rubygems' |
| 3 | 3 | require 'rake' |
-
|
rf9a56c
|
r7945e3
|
|
| | 1 | # encoding: utf-8 |
| 1 | 2 | [ './ext', '../ext', './lib', '../lib' ].each { |l| $: << l } |
| 2 | 3 | require 'rubygems' |
| … |
… |
|
| 9 | 10 | |
| 10 | 11 | test_path = './test_data/xslspec.xml' |
| 11 | | #fraw = open('http://hasno.info/feed/atom.xml') { |f| f.readlines } |
| 12 | 12 | fraw = open( test_path ) { |f| f.readlines } |
| 13 | 13 | ds = fraw.join('') |
-
|
rf9a56c
|
r7945e3
|
|
| | 1 | # encoding: utf-8 |
| 1 | 2 | [ './ext', '../ext', './lib', '../lib' ].each { |l| $: << l } |
| 2 | 3 | require 'rubygems' |
-
|
rf9a56c
|
r7945e3
|
|
| | 1 | # encoding: utf-8 |
| 1 | 2 | [ './ext', '../ext', './lib', '../lib' ].each { |l| $: << l } |
| 2 | 3 | require 'rubygems' |
| … |
… |
|
| 9 | 10 | |
| 10 | 11 | test_path = './test_data/unicode.xml' |
| 11 | | #fraw = open('http://hasno.info/feed/atom.xml') { |f| f.readlines } |
| 12 | 12 | fraw = open( test_path ) { |f| f.readlines } |
| 13 | 13 | ds = fraw.join('') |
-
|
r3743ad
|
r7945e3
|
|
| 2 | 2 | # |
| 3 | 3 | # Please see the LICENSE file for copyright, licensing and distribution information |
| | 4 | # encoding: utf-8 |
| 4 | 5 | |
| 5 | 6 | # Alias for FastXml::Doc.new |
-
|
r3743ad
|
r7945e3
|
|
| 4 | 4 | # initially loaded. |
| 5 | 5 | # |
| | 6 | # encoding: utf-8 |
| 6 | 7 | # Please see the LICENSE file for copyright, licensing and distribution information |
| 7 | 8 | module FastXml |
-
|
rac1e4a
|
r7945e3
|
|
| 1 | | # $Id$ |
| | 1 | # encoding: utf-8 |
| 2 | 2 | $: << '../ext' |
| 3 | 3 | $: << './ext' |
-
|
r93e12c
|
r7945e3
|
|
| 1 | | # $Id$ |
| | 1 | # encoding: utf-8 |
| 2 | 2 | $: << '../ext' |
| 3 | 3 | $: << './ext' |
-
|
r5fe746
|
r7945e3
|
|
| 1 | | # $Id$ |
| | 1 | # encoding: utf-8 |
| 2 | 2 | $: << '../ext' |
| 3 | 3 | $: << './ext' |
-
|
r3347bf
|
r7945e3
|
|
| 1 | 1 | $: << '../ext' |
| 2 | 2 | $: << './ext' |
| 3 | | |
| | 3 | # encoding: utf-8 |
| 4 | 4 | require 'fastxml' |
| 5 | 5 | |
-
-
|
r9f39fd
|
r7945e3
|
|
| | 1 | # encoding: utf-8 |
| 1 | 2 | $: << '../ext' |
| 2 | 3 | $: << './ext' |
| … |
… |
|
| 26 | 27 | @list.entry(0).should_not be_nil |
| 27 | 28 | @list.entry(0).should == @list[0] |
| | 29 | end |
| | 30 | |
| | 31 | it 'entry should not explode when faced with insane indexes' do |
| | 32 | @list.entry(99999999**99999).should be_nil |
| | 33 | @list.entry(0x3fffffff).should be_nil |
| 28 | 34 | end |
| 29 | 35 | |