MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / test_ExtensibleIndex

Method test_ExtensibleIndex

ruby/test/IddObject_Test.rb:18–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16 # end
17
18 def test_ExtensibleIndex
19 factory = OpenStudio::IddFileAndFactoryWrapper.new("EnergyPlus".to_IddFileType)
20 oio = factory.getObject("BuildingSurface:Detailed".to_IddObjectType)
21 assert((not oio.empty?))
22 iddObj = oio.get()
23
24 extInd = OpenStudio::ExtensibleIndex.new(0,1)
25 ind = iddObj.index(extInd)
26 assert_equal(12,ind)
27
28 extInd.group = 2
29 extInd.field = 2
30 ind = iddObj.index(extInd)
31 assert_equal(19,ind)
32
33 ind = 27
34 extInd = iddObj.extensibleIndex(ind)
35 assert_equal(5,extInd.group)
36 assert_equal(1,extInd.field)
37
38 end
39
40end

Callers

nothing calls this directly

Calls 6

groupMethod · 0.80
fieldMethod · 0.80
extensibleIndexMethod · 0.80
getObjectMethod · 0.45
getMethod · 0.45
indexMethod · 0.45

Tested by

no test coverage detected