File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ # Simple Dev Utilities
2+
3+ ---
4+
5+ <br >
6+
7+ > Upload seemingly trivial utilities that may appear useless at first glance but could prove to be unexpectedly necessary or valuable
8+
9+ <br >
10+
11+ TOC
12+
13+ [ .properties -> .yaml format converter] ( #properties---yaml-format-converter )
14+
15+ <br >
16+
17+ ### .properties -> .yaml format converter
18+
19+ Convert .properties file format to .yaml file format.
20+
21+ ``` kotlin
22+ class Test {
23+
24+ @Test
25+ fun convertPropertiesToYaml () {
26+ // given
27+ val propertyString = " kotlin.code.style=official"
28+ // when
29+ val yamlConverter = YamlConverter ()
30+ val yamlString = yamlConverter.convertToYaml(propertyString)
31+ // then
32+ require(" kotlin: \n code: \n style: official\n\n " == yamlString)
33+ }
34+
35+ }
36+ ```
You can’t perform that action at this time.
0 commit comments