X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/040a541c74913c01ee3517273a7be30c510cc620..060d38d627bd1e51dd2b3c6e7de9af6aa7d7b6f3:/sdk/go/blockdigest/blockdigest_test.go diff --git a/sdk/go/blockdigest/blockdigest_test.go b/sdk/go/blockdigest/blockdigest_test.go index e520deefe8..a9994f7047 100644 --- a/sdk/go/blockdigest/blockdigest_test.go +++ b/sdk/go/blockdigest/blockdigest_test.go @@ -1,3 +1,7 @@ +// Copyright (C) The Arvados Authors. All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 + package blockdigest import ( @@ -143,6 +147,9 @@ func TestLocatorPatternBasic(t *testing.T) { "12345678901234567890123456789012+12345+A1+B123wxyz@_-") expectLocatorPatternMatch(t, "12345678901234567890123456789012+12345+A1+B123wxyz@_-+C@") + expectLocatorPatternMatch(t, "12345678901234567890123456789012+12345+A") + expectLocatorPatternMatch(t, "12345678901234567890123456789012+12345+A1+B") + expectLocatorPatternMatch(t, "12345678901234567890123456789012+12345+A+B2") expectLocatorPatternFail(t, "12345678901234567890123456789012") expectLocatorPatternFail(t, "12345678901234567890123456789012+") @@ -153,11 +160,9 @@ func TestLocatorPatternBasic(t *testing.T) { expectLocatorPatternFail(t, "12345678901234567890123456789012+12345 ") expectLocatorPatternFail(t, "12345678901234567890123456789012+12345+1") expectLocatorPatternFail(t, "12345678901234567890123456789012+12345+1A") - expectLocatorPatternFail(t, "12345678901234567890123456789012+12345+A") expectLocatorPatternFail(t, "12345678901234567890123456789012+12345+a1") expectLocatorPatternFail(t, "12345678901234567890123456789012+12345+A1+") - expectLocatorPatternFail(t, "12345678901234567890123456789012+12345+A1+B") - expectLocatorPatternFail(t, "12345678901234567890123456789012+12345+A+B2") + } func TestParseBlockLocatorSimple(t *testing.T) {