9397: add normalized manifest test
[arvados.git] / sdk / go / manifest / manifest_test.go
index 2fe427224ec848ea448a172aaf9e991289b46dd3..0d58a9ec1116de52529b4b80ffaf1787d2ac71db 100644 (file)
@@ -251,3 +251,9 @@ func TestBlockIterWithBadManifest(t *testing.T) {
                }
        }
 }
+
+func TestNormalizeManifest(t *testing.T) {
+       m := Manifest{Text: ". acbd18db4cc2f85cedef654fccc4a4d8+40 0:10:one 10:10:one 20:10:two 30:10:two\n"}
+       normalized := m.NormalizedManifestForPath("")
+       expectEqual(t, normalized, ". acbd18db4cc2f85cedef654fccc4a4d8+40 0:20:one 20:40:two\n")
+}