Assisted-by: GLM 5.3 Flash
This commit is contained in:
@@ -885,3 +885,13 @@ name = "b"
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func TestParseCRLFDocument(t *testing.T) {
|
||||
tree, err := ParseMap([]byte("a = 1\r\nb = 2\r\n[t]\r\nc = \"x\"\r\n"))
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if tree["a"] != int64(1) || tree["b"] != int64(2) {
|
||||
t.Errorf("tree = %v", tree)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user