Skip to content

Commit a1a2a82

Browse files
committed
Fix the tests.
1 parent 201af64 commit a1a2a82

4 files changed

Lines changed: 252 additions & 139 deletions

File tree

test/ConvSpec-001-007.xspec

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,12 @@
2626
<x:expect label="...and set the code for DLC" test="//bf:Work[4]/bf:adminMetadata/bf:AdminMetadata/bf:identifiedBy/bf:Local/bf:assigner/bf:Agent/bf:code = 'DLC'"/>
2727
</x:scenario>
2828

29-
<x:scenario label="005 - DATE AND TIME OF LAST TRANSACTION">
29+
<x:scenario label="005 - DATE AND TIME OF LAST CATALOGER EDIT">
3030
<x:context href="data/ConvSpec-001-007/marc.xml"/>
31-
<x:expect label="005 should set the AdminMetadata changeDate property for the work" test="//bf:Work[1]/bf:adminMetadata/bf:AdminMetadata/bf:changeDate[@rdf:datatype='http://www.w3.org/2001/XMLSchema#dateTime'] = '2011-07-13T21:24:05'"/>
32-
<x:expect label="005 with all '0' should not convert" test="count(//bf:Work[1]/bf:adminMetadata/bf:AdminMetadata/bf:changeDate) = 1"/>
31+
<x:expect label="005 should set the AdminMetadata status property to 'changed' for the work" test="//bf:Work[1]/bf:adminMetadata[2]/bf:AdminMetadata/bf:status/bf:Status/@rdf:about = 'http://id.loc.gov/vocabulary/mstatus/c'"/>
32+
<x:expect label="005 AdminMetadata should not have generationProcess" test="not(//bf:Work[1]/bf:adminMetadata[2]/bf:AdminMetadata/bf:generationProcess)"/>
33+
<x:expect label="005 should set the AdminMetadata changeDate property for the work" test="//bf:Work[1]/bf:adminMetadata[2]/bf:AdminMetadata/bf:date[@rdf:datatype='http://www.w3.org/2001/XMLSchema#dateTime'] = '2011-07-13T21:24:05'"/>
34+
<x:expect label="005 with all '0' should not convert" test="count(//bf:Work[1]/bf:adminMetadata[2]/bf:AdminMetadata/bf:date) = 1"/>
3335
</x:scenario>
3436

3537
<x:scenario label="007 - PHYSICAL DESCRIPTION FIXED FIELD">

test/ConvSpec-006,008.xspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727

2828
<x:scenario label="ALL MATERIALS">
2929
<x:context href="data/ConvSpec-006,008/marc.xml"/>
30-
<x:expect label="pos 0-5 should set the AdminMetadata creationDate property of the Work" test="//bf:Work[1]/bf:adminMetadata/bf:AdminMetadata/bf:creationDate = '2004-05-20'"/>
30+
<x:expect label="pos 0-5 should set the AdminMetadata to type 'create'" test="//bf:Work[1]/bf:adminMetadata[1]/bf:AdminMetadata/bf:status/bf:Status/@rdf:about = 'http://id.loc.gov/vocabulary/mstatus/n'"/>
31+
<x:expect label="pos 0-5 should set the AdminMetadata date property of the 'create' AM" test="//bf:Work[1]/bf:adminMetadata[1]/bf:AdminMetadata/bf:date = '2004-05-20'"/>
3132
<x:expect label="pos 6-14 date handling" test="//bf:Instance[1]/bf:provisionActivity/bf:ProvisionActivity/bf:date = '200X'"/>
3233
<x:expect label="c or d in pos 6 adds a status" test="//bf:Instance[7]/bf:provisionActivity/bf:ProvisionActivity/bf:status/bf:Status/rdfs:label = 'ceased'"/>
3334
<x:expect label="...with URI" test="//bf:Instance[7]/bf:provisionActivity/bf:ProvisionActivity/bf:status/bf:Status/@rdf:about = 'http://id.loc.gov/vocabulary/mstatus/ceased'"/>

0 commit comments

Comments
 (0)