Skip to content

Commit

Permalink
Bring in test OD file from data repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig Berry committed Aug 12, 2024
1 parent 0d97410 commit ec823b8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Binary file removed test/OD-single-word-example.dcm
Binary file not shown.
10 changes: 8 additions & 2 deletions test/data.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1156,8 +1156,14 @@ it.each([
);

describe('test OtherDouble ValueRepresentation', () => {
test('Treat OD as explicit VR with correct length', () => {
const file = fs.readFileSync(`test/OD-single-word-example.dcm`);
it('Treat OD as explicit VR with correct length', async () => {
const url =
"https://github.com/dcmjs-org/data/releases/download/od-encoding-data/OD-single-word-example.dcm";
const dcmPath = await getTestDataset(
url,
"OD-single-word-example"
);
const file = fs.readFileSync(dcmPath);
const data = dcmjs.data.DicomMessage.readFile(new Uint8Array(file).buffer);

// expect OD VR data element (VolumetricCurveUpDirections) to be read with expected value
Expand Down

0 comments on commit ec823b8

Please sign in to comment.