repo.or.cz
/
ruby-80x24.org.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
* 2022-01-18 [ci skip]
[ruby-80x24.org.git]
/
test
/
psych
/
test_symbol.rb
blob
36416ffe293e768f57e7e7fd4589bb1be4434501
1
# frozen_string_literal: true
2
require_relative 'helper'
3
4
module Psych
5
class TestSymbol < TestCase
6
def test_cycle_empty
7
assert_cycle :''
8
end
9
10
def test_cycle_colon
11
assert_cycle :':'
12
end
13
14
def test_cycle
15
assert_cycle :a
16
end
17
18
def test_stringy
19
assert_cycle :"1"
20
end
21
22
def test_load_quoted
23
assert_equal :"1", Psych.load("--- :'1'\n")
24
end
25
end
26
end