Metadata.String quotes UUID
This commit is contained in:
parent
bd4ed45a45
commit
1fd34731ff
@ -15,7 +15,7 @@ type Metadata struct {
|
||||
Dependencies []*Dependency
|
||||
}
|
||||
func (this *Metadata) String () string {
|
||||
out := fmt.Sprint(this.UUID)
|
||||
out := fmt.Sprint(Quote(this.UUID.String()))
|
||||
for _, dependency := range this.Dependencies {
|
||||
out += fmt.Sprint("\n", dependency)
|
||||
}
|
||||
|
@ -7,8 +7,20 @@ testString (test,
|
||||
// correct
|
||||
`'5a8353f8-cad8-4604-be60-29a2575996bc'
|
||||
+ 'io'
|
||||
+ '../io' customIo`,
|
||||
// input
|
||||
`'5a8353f8cad84604be6029a2575996bc'
|
||||
+ 'io'
|
||||
+ '../io' customIo
|
||||
`,
|
||||
`)
|
||||
}
|
||||
|
||||
func TestMetadataStrange (test *testing.T) {
|
||||
testString (test,
|
||||
// correct
|
||||
`'5a8353f8-cad8-4604-be60-29a2575996bc'
|
||||
+ 'io'
|
||||
+ '../io' customIo`,
|
||||
// input
|
||||
`
|
||||
'5a8353f8cad84604be6029a2575996bc'
|
||||
|
Loading…
Reference in New Issue
Block a user