Skip to content

Commit

Permalink
Clarify test.
Browse files Browse the repository at this point in the history
  • Loading branch information
shorowit committed Sep 26, 2023
1 parent 4fb3faf commit 27c8a79
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions BuildResidentialScheduleFile/measure.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<schema_version>3.1</schema_version>
<name>build_residential_schedule_file</name>
<uid>f770b2db-1a9f-4e99-99a7-7f3161a594b1</uid>
<version_id>4df0dccd-e630-451d-a8e0-64993295342f</version_id>
<version_modified>2023-09-26T16:03:10Z</version_modified>
<version_id>d6a9eedd-3661-499a-8e45-0fe9716cd4cb</version_id>
<version_modified>2023-09-26T16:12:25Z</version_modified>
<xml_checksum>03F02484</xml_checksum>
<class_name>BuildResidentialScheduleFile</class_name>
<display_name>Schedule File Builder</display_name>
Expand Down Expand Up @@ -900,7 +900,7 @@
<filename>build_residential_schedule_file_test.rb</filename>
<filetype>rb</filetype>
<usage_type>test</usage_type>
<checksum>1FD91AEB</checksum>
<checksum>13DDEF22</checksum>
</file>
</files>
</measure>
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def test_multiple_buildings_id
hpxml = _create_hpxml('base-multiple-buildings.xml')
XMLHelper.write_file(hpxml.to_doc, @tmp_hpxml_path)

@args_hash['output_csv_path'] = File.absolute_path(File.join(@tmp_output_path, 'occupancy-stochastic.csv'))
@args_hash['output_csv_path'] = File.absolute_path(File.join(@tmp_output_path, 'occupancy-stochastic_2.csv'))
@args_hash['building_id'] = 'MyBuilding_2'
hpxml, result = _test_measure()

Expand All @@ -377,7 +377,7 @@ def test_multiple_buildings_id
output_path: @tmp_schedule_file_path)

assert_equal(1, hpxml_bldg.header.schedules_filepaths.size)
assert(hpxml_bldg.header.schedules_filepaths[0].include? 'occupancy-stochastic.csv')
assert(hpxml_bldg.header.schedules_filepaths[0].include? 'occupancy-stochastic_2.csv')
assert_in_epsilon(6072, sf.annual_equivalent_full_load_hrs(col_name: SchedulesFile::ColumnOccupants, schedules: sf.tmp_schedules), 0.1)
assert_in_epsilon(1765, sf.annual_equivalent_full_load_hrs(col_name: SchedulesFile::ColumnLightingInterior, schedules: sf.tmp_schedules), 0.1)
assert_in_epsilon(1765, sf.annual_equivalent_full_load_hrs(col_name: SchedulesFile::ColumnLightingGarage, schedules: sf.tmp_schedules), 0.1)
Expand Down

0 comments on commit 27c8a79

Please sign in to comment.