Skip to content

Commit 170f4a0

Browse files
committed
Fix URDNA2015 test lavel
1 parent 2716858 commit 170f4a0

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

ld/processor_test.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,14 @@ func TestSuite(t *testing.T) {
244244
expectedFileName = testMap["result"].(string)
245245
}
246246

247+
testName := testId
248+
if strings.HasPrefix(testName, "#") {
249+
testName = manifestURI + testName
250+
}
251+
247252
td := &TestDefinition{
248253
Id: testId,
249-
Name: manifestURI + testId,
254+
Name: testName,
250255
Type: testType,
251256
EvaluationType: testEvaluationType,
252257
InputURL: inputURL,
@@ -402,7 +407,7 @@ func TestSuite(t *testing.T) {
402407
options.Algorithm = "URGNA2012"
403408
result, opError = proc.Normalize(input, options)
404409
case "rdfn:Urdna2015EvalTest":
405-
log.Println("Running URDNA2015 test", td.Id, ":", td.Name)
410+
log.Println("Running URDNA2015 test", td.Name)
406411

407412
inputBytes, err := ioutil.ReadFile(td.InputFileName)
408413
assert.NoError(t, err)

0 commit comments

Comments
 (0)