Skip to content
Snippets Groups Projects
Commit 25559611 authored by David Sehnal's avatar David Sehnal
Browse files

Fixed cif test

parent 6979ae82
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,9 @@ export interface Block {
}
export function Block(categories: { readonly [name: string]: Category }, header: string): Block {
if (Object.keys(categories).some(k => k[0] !== '_')) {
throw new Error(`Category names must start with '_'.`);
}
return { header, categories };
}
......
......@@ -14,7 +14,7 @@ const intField = TextField({ data: columnData, indices: [0, 1, 1, 2, 2, 3], coun
const strField = TextField({ data: columnData, indices: [3, 4, 4, 5, 5, 6], count: 3 }, 3);
const testBlock = Data.Block({
'atoms': Data.Category(3, {
_atoms: Data.Category(3, {
x: intField,
name: strField
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment