YANGTOOLS-706: Split out yang-parser-rfc7950
[yangtools.git] / yang / yang-parser-rfc7950 / src / test / resources / bugs / bug5884 / foo.yang
1 module foo {
2     namespace "urn:yang.foo";
3     prefix "foo";
4
5     revision "2016-01-01";
6
7     container main-container {
8         uses test-grouping {
9             augment "test/test-choice" {
10                 leaf short-aug-uses-inside {
11                     type string;
12                 }
13             }
14
15             augment "test/test-choice" {
16                 case normal-aug-uses-inside {
17                     leaf normal-aug-uses-inside {
18                         type string;
19                     }
20                 }
21             }
22         }
23     }
24
25     grouping test-grouping {
26         container test {
27             choice test-choice {
28                 leaf short {
29                     type string;
30                 }
31                 case normal {
32                     leaf normal {
33                         type string;
34                     }
35                 }
36             }
37         }
38     }
39
40     choice test-choice {
41         leaf short {
42             type string;
43         }
44         case normal {
45             leaf normal {
46                 type string;
47             }
48         }
49     }
50
51     augment "/test-choice" {
52         leaf short-aug-uses {
53             type string;
54         }
55     }
56
57     augment "/test-choice" {
58         case normal-aug-uses {
59             leaf normal-aug-uses {
60                 type string;
61             }
62         }
63     }
64
65     augment "/main-container/test/test-choice" {
66         leaf short-aug-uses-outside {
67             type string;
68         }
69     }
70
71     augment "/main-container/test/test-choice" {
72         case normal-aug-uses-outside {
73             leaf normal-aug-uses-outside {
74                 type string;
75             }
76         }
77     }
78 }