bbop-graph-noctua
Advanced tools
Comparing version 0.0.34 to 0.0.35
{ | ||
"name": "bbop-graph-noctua", | ||
"version": "0.0.34", | ||
"version": "0.0.35", | ||
"license": "BSD-3-Clause", | ||
@@ -5,0 +5,0 @@ "description": "A subclass of bbop-graph that layers on a complete annotation and graph editing model for the Noctua set of tools.", |
@@ -1096,5 +1096,5 @@ //// | ||
describe("types, inferred_types, and inferred_types_with_all", function(){ | ||
describe("types, root_types, inferred_types, and inferred_types_with_all", function(){ | ||
it('inferred (+with all) found', function(){ | ||
it('inferred (+with all) found, no root', function(){ | ||
@@ -1108,2 +1108,3 @@ var raw_resp = | ||
var n = g.get_node('gomodel:5d88482400000052/5d88482400000053'); | ||
assert.equal(n.types().length, 1, 'has 1 type'); | ||
@@ -1118,4 +1119,26 @@ assert.equal(n.inferred_types().length, 0, 'may be a bug?'); | ||
// This model has not root types (older), so let's make sure we | ||
// can deal with this quirk... | ||
assert.equal(n.root_types().length, 0, 'has no root types'); | ||
}); | ||
it('root types found in "new" response', function(){ | ||
var raw_resp = | ||
require('./response-gomodel-596ef51500000088-2020-07-01.json'); | ||
var g = new model.graph(); | ||
g.load_data_basic(raw_resp['data']); | ||
//g.report_state(); console.log(''); | ||
var n = g.get_node('gomodel:596ef51500000088/5b91dbd100000466'); | ||
assert.equal(n.types().length, 1, 'has 1 type'); | ||
assert.equal(n.root_types().length, 3, | ||
'three root types'); | ||
assert.equal(n.inferred_types().length, 0, | ||
'no inferred types--reasoner off'); | ||
}); | ||
}); | ||
@@ -1122,0 +1145,0 @@ |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8251434
31
85637