mirror of
https://github.com/luscis/openlan.git
synced 2025-10-08 18:10:22 +08:00
fea: ceci default is yaml.
This commit is contained in:
@@ -71,25 +71,3 @@ func TestPrettyBytes(t *testing.T) {
|
||||
s = PrettyBytes(1024*1024*1024 + 1024*1024*512 + 59)
|
||||
assert.Equal(t, "1.50G", s, "be the same.")
|
||||
}
|
||||
|
||||
func TestScanPure(t *testing.T) {
|
||||
buff := bytes.NewBuffer([]byte(`// hi`))
|
||||
_, err := ScanAnn(buff)
|
||||
assert.Equal(t, nil, err, "be the same.")
|
||||
buff = bytes.NewBuffer([]byte(`// hi
|
||||
you are`))
|
||||
data, err := ScanAnn(buff)
|
||||
assert.Equal(t, string(data), "\t\t\tyou are", "be the same.")
|
||||
buff = bytes.NewBuffer([]byte(`// hi
|
||||
you are
|
||||
// you are
|
||||
//`))
|
||||
data, err = ScanAnn(buff)
|
||||
assert.Equal(t, string(data), "\t\t\tyou are", "be the same.")
|
||||
buff = bytes.NewBuffer([]byte(`// hi
|
||||
you are
|
||||
// you are
|
||||
/`))
|
||||
data, err = ScanAnn(buff)
|
||||
assert.Equal(t, string(data), "\t\t\tyou are\t\t\t/", "be the same.")
|
||||
}
|
||||
|
Reference in New Issue
Block a user