* 2022-01-18 [ci skip]
[ruby-80x24.org.git] / test / psych / test_symbol.rb
blob36416ffe293e768f57e7e7fd4589bb1be4434501
1 # frozen_string_literal: true
2 require_relative 'helper'
4 module Psych
5   class TestSymbol < TestCase
6     def test_cycle_empty
7       assert_cycle :''
8     end
10     def test_cycle_colon
11       assert_cycle :':'
12     end
14     def test_cycle
15       assert_cycle :a
16     end
18     def test_stringy
19       assert_cycle :"1"
20     end
22     def test_load_quoted
23       assert_equal :"1", Psych.load("--- :'1'\n")
24     end
25   end
26 end