2016-08-31 17:18:51 +00:00
|
|
|
package restic
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2022-12-03 10:55:33 +00:00
|
|
|
rtest "github.com/restic/restic/internal/test"
|
|
|
|
)
|
2016-08-31 17:18:51 +00:00
|
|
|
|
2022-12-03 10:55:33 +00:00
|
|
|
func TestIDsString(t *testing.T) {
|
|
|
|
ids := IDs{
|
|
|
|
TestParseID("7bb086db0d06285d831485da8031281e28336a56baa313539eaea1c73a2a1a40"),
|
|
|
|
TestParseID("1285b30394f3b74693cc29a758d9624996ae643157776fce8154aabd2f01515f"),
|
|
|
|
TestParseID("7bb086db0d06285d831485da8031281e28336a56baa313539eaea1c73a2a1a40"),
|
2016-08-31 17:18:51 +00:00
|
|
|
}
|
2022-12-03 10:55:33 +00:00
|
|
|
|
|
|
|
rtest.Equals(t, "[7bb086db 1285b303 7bb086db]", ids.String())
|
2016-08-31 17:18:51 +00:00
|
|
|
}
|