2015-12-16 08:07:31 +03:00
|
|
|
# frozen_string_literal: false
|
2013-03-26 18:55:04 +04:00
|
|
|
require_relative 'helper'
|
2010-03-29 01:49:37 +04:00
|
|
|
|
|
|
|
module Psych
|
|
|
|
class TestSymbol < TestCase
|
2014-06-06 02:42:58 +04:00
|
|
|
def test_cycle_empty
|
|
|
|
assert_cycle :''
|
|
|
|
end
|
|
|
|
|
|
|
|
def test_cycle_colon
|
|
|
|
assert_cycle :':'
|
|
|
|
end
|
|
|
|
|
2010-03-29 01:49:37 +04:00
|
|
|
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
|