We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ac4ce8 commit 212a84fCopy full SHA for 212a84f
properties_test.go
@@ -129,6 +129,24 @@ func TestPropertiesRedBeearLabBoardsTxt(t *testing.T) {
129
require.Equal(t, "arduino:arduino", ethernet["build.core"])
130
}
131
132
+func TestSubTreeForMultipleDots(t *testing.T) {
133
+ p := Map{
134
+ "root.lev1.prop": "hi",
135
+ "root.lev1.prop2": "how",
136
+ "root.lev1.prop3": "are",
137
+ "root.lev1.prop4": "you",
138
+ "root.lev1": "A",
139
+ }
140
+
141
+ lev1 := p.SubTree("root.lev1")
142
+ require.EqualValues(t, Map{
143
+ "prop4": "you",
144
+ "prop": "hi",
145
+ "prop2": "how",
146
+ "prop3": "are",
147
+ }, lev1)
148
+}
149
150
func TestPropertiesBroken(t *testing.T) {
151
_, err := Load(filepath.Join("testdata", "broken.txt"))
152
0 commit comments