gluon-web-remote

Web remote Administration for big size of gluon routers
git clone git://archive.git.mtrnord.blog/MTRNord/gluon-web-remote.git
Log | Files | Refs | README

sfTests.yml (2295B)


      1 --- %YAML:1.0
      2 test: Multiple quoted string on one line
      3 brief: >
      4     Multiple quoted string on one line
      5 yaml: |
      6     stripped_title: { name: "foo bar", help: "bar foo" }
      7 php: |
      8     array('stripped_title' => array('name' => 'foo bar', 'help' => 'bar foo'))
      9 ---
     10 test: Empty sequence
     11 yaml: |
     12     foo: [ ]
     13 php: |
     14     array('foo' => array())
     15 ---
     16 test: Empty value
     17 yaml: |
     18     foo:
     19 php: |
     20     array('foo' => null)
     21 ---
     22 test: Inline string parsing
     23 brief: >
     24     Inline string parsing
     25 yaml: |
     26     test: ['complex: string', 'another [string]']
     27 php: |
     28     array('test' => array('complex: string', 'another [string]'))
     29 ---
     30 test: Boolean
     31 brief: >
     32     Boolean
     33 yaml: |
     34     - false
     35     - true
     36     - null
     37     - ~
     38     - 'false'
     39     - 'true'
     40     - 'null'
     41     - '~'
     42 php: |
     43     array(
     44       false,
     45       true,
     46       null,
     47       null,
     48       'false',
     49       'true',
     50       'null',
     51       '~',
     52     )
     53 ---
     54 test: Empty lines in folded blocks
     55 brief: >
     56   Empty lines in folded blocks
     57 yaml: |
     58   foo:
     59     bar: |
     60       foo
     61 
     62 
     63         
     64       bar
     65 php: |
     66   array('foo' => array('bar' => "foo\n\n\n  \nbar\n"))
     67 ---
     68 test: IP addresses
     69 brief: >
     70   IP addresses
     71 yaml: |
     72   foo: 10.0.0.2
     73 php: |
     74   array('foo' => '10.0.0.2')
     75 ---
     76 test: A sequence with an embedded mapping
     77 brief: >
     78   A sequence with an embedded mapping
     79 yaml: |
     80   - foo
     81   - bar: { bar: foo }
     82 php: |
     83   array('foo', array('bar' => array('bar' => 'foo')))
     84 ---
     85 test: A sequence with an unordered array
     86 brief: >
     87   A sequence with an unordered array
     88 yaml: |
     89   1: foo
     90   0: bar
     91 php: |
     92   array(1 => 'foo', 0 => 'bar')
     93 ---
     94 test: Octal
     95 brief: as in spec example 2.19, octal value is converted
     96 yaml: |
     97   foo: 0123
     98 php: |
     99   array('foo' => 83)
    100 ---
    101 test: Octal strings
    102 brief: Octal notation in a string must remain a string
    103 yaml: |
    104   foo: "0123"
    105 php: |
    106   array('foo' => '0123')
    107 ---
    108 test: Octal strings
    109 brief: Octal notation in a string must remain a string
    110 yaml: |
    111   foo: '0123'
    112 php: |
    113   array('foo' => '0123')
    114 ---
    115 test: Octal strings
    116 brief: Octal notation in a string must remain a string
    117 yaml: |
    118   foo: |
    119     0123
    120 php: |
    121   array('foo' => "0123\n")
    122 ---
    123 test: Document as a simple hash
    124 brief: Document as a simple hash
    125 yaml: |
    126   { foo: bar }
    127 php: |
    128   array('foo' => 'bar')
    129 ---
    130 test: Document as a simple array
    131 brief: Document as a simple array
    132 yaml: |
    133   [ foo, bar ]
    134 php: |
    135   array('foo', 'bar')