2010-03-29 14:25:57 -04:00
|
|
|
require_relative 'helper'
|
2010-03-28 17:49:37 -04:00
|
|
|
|
|
|
|
module Psych
|
|
|
|
class TestSymbol < TestCase
|
|
|
|
def test_cycle
|
|
|
|
assert_cycle :a
|
|
|
|
end
|
|
|
|
|
|
|
|
def test_stringy
|
|
|
|
assert_cycle :"1"
|
|
|
|
end
|
|
|
|
|
|
|
|
def test_load_quoted
|
|
|
|
assert_equal :"1", Psych.load("--- :'1'\n")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|