diff --git a/test/necb/building_regression_tests/resources/template_test_necb_bldg.erb b/test/necb/building_regression_tests/resources/template_test_necb_bldg.erb index 9becff1470..6ea69a06cf 100644 --- a/test/necb/building_regression_tests/resources/template_test_necb_bldg.erb +++ b/test/necb/building_regression_tests/resources/template_test_necb_bldg.erb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_<%=building_type%>_<%=template%>_<%=primary_heating_fuel%> < NECBRegressionHelper -def setup() -super() -end -def test_<%=template%>_<%=building_type%>_regression_<%=primary_heating_fuel%>() -result, diff = create_model_and_regression_test(building_type: '<%=building_type%>',primary_heating_fuel: '<%=primary_heating_fuel%>', epw_file: '<%=epw_file%>',template: '<%=template%>', run_simulation: <%=@run_simulation%>) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/<%=building_type%>-<%=template%>-<%=primary_heating_fuel%>_<%=File.basename(epw_file, ".epw")%>_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_<%=template%>_<%=building_type%>_regression_<%=primary_heating_fuel%>() + result, diff = create_model_and_regression_test( + building_type: '<%=building_type%>', + primary_heating_fuel: '<%=primary_heating_fuel%>', + epw_file: '<%=epw_file%>', + template: '<%=template%>', + run_simulation: <%=@run_simulation%> + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/<%=building_type%>-<%=template%>-<%=primary_heating_fuel%>_<%=File.basename(epw_file, ".epw")%>_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAP1980TO2010_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAP1980TO2010_Electricity.rb index d01a4a1fad..8f4dc6b773 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAP1980TO2010_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAP1980TO2010_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_FullServiceRestaurant_BTAP1980TO2010_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_FullServiceRestaurant_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'FullServiceRestaurant',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/FullServiceRestaurant-BTAP1980TO2010-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_FullServiceRestaurant_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'FullServiceRestaurant', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/FullServiceRestaurant-BTAP1980TO2010-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAP1980TO2010_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAP1980TO2010_ElectricityHPElecBackup.rb index bb873e511a..aff67e2b38 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAP1980TO2010_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAP1980TO2010_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_FullServiceRestaurant_BTAP1980TO2010_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_FullServiceRestaurant_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'FullServiceRestaurant',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/FullServiceRestaurant-BTAP1980TO2010-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_FullServiceRestaurant_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'FullServiceRestaurant', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/FullServiceRestaurant-BTAP1980TO2010-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb index d2919f6fd7..0368a22e12 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_FullServiceRestaurant_BTAP1980TO2010_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_FullServiceRestaurant_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'FullServiceRestaurant',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/FullServiceRestaurant-BTAP1980TO2010-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_FullServiceRestaurant_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'FullServiceRestaurant', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/FullServiceRestaurant-BTAP1980TO2010-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAP1980TO2010_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAP1980TO2010_NaturalGas.rb index d65d0b9aa9..4784a142a9 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAP1980TO2010_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAP1980TO2010_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_FullServiceRestaurant_BTAP1980TO2010_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_FullServiceRestaurant_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'FullServiceRestaurant',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/FullServiceRestaurant-BTAP1980TO2010-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_FullServiceRestaurant_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'FullServiceRestaurant', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/FullServiceRestaurant-BTAP1980TO2010-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb index ca307e367a..d6fae3f9ef 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_FullServiceRestaurant_BTAP1980TO2010_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_FullServiceRestaurant_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'FullServiceRestaurant',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/FullServiceRestaurant-BTAP1980TO2010-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_FullServiceRestaurant_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'FullServiceRestaurant', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/FullServiceRestaurant-BTAP1980TO2010-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAP1980TO2010_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAP1980TO2010_NaturalGasHPGasBackup.rb index 1f7f4eb215..a4dda725d6 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAP1980TO2010_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAP1980TO2010_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_FullServiceRestaurant_BTAP1980TO2010_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_FullServiceRestaurant_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'FullServiceRestaurant',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/FullServiceRestaurant-BTAP1980TO2010-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_FullServiceRestaurant_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'FullServiceRestaurant', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/FullServiceRestaurant-BTAP1980TO2010-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAPPRE1980_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAPPRE1980_Electricity.rb index 9c19e2dd88..1a8c0e9d02 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAPPRE1980_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAPPRE1980_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_FullServiceRestaurant_BTAPPRE1980_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_FullServiceRestaurant_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'FullServiceRestaurant',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/FullServiceRestaurant-BTAPPRE1980-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_FullServiceRestaurant_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'FullServiceRestaurant', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/FullServiceRestaurant-BTAPPRE1980-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAPPRE1980_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAPPRE1980_ElectricityHPElecBackup.rb index c787f3efed..9390578c52 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAPPRE1980_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAPPRE1980_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_FullServiceRestaurant_BTAPPRE1980_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_FullServiceRestaurant_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'FullServiceRestaurant',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/FullServiceRestaurant-BTAPPRE1980-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_FullServiceRestaurant_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'FullServiceRestaurant', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/FullServiceRestaurant-BTAPPRE1980-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAPPRE1980_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAPPRE1980_ElectricityHPGasBackupMixed.rb index 4619b31241..46511cc392 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAPPRE1980_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAPPRE1980_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_FullServiceRestaurant_BTAPPRE1980_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_FullServiceRestaurant_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'FullServiceRestaurant',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/FullServiceRestaurant-BTAPPRE1980-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_FullServiceRestaurant_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'FullServiceRestaurant', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/FullServiceRestaurant-BTAPPRE1980-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAPPRE1980_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAPPRE1980_NaturalGas.rb index 139705ebf6..ee3c1bc624 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAPPRE1980_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAPPRE1980_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_FullServiceRestaurant_BTAPPRE1980_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_FullServiceRestaurant_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'FullServiceRestaurant',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/FullServiceRestaurant-BTAPPRE1980-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_FullServiceRestaurant_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'FullServiceRestaurant', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/FullServiceRestaurant-BTAPPRE1980-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb index 774bf34d15..7d661322cb 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_FullServiceRestaurant_BTAPPRE1980_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_FullServiceRestaurant_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'FullServiceRestaurant',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/FullServiceRestaurant-BTAPPRE1980-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_FullServiceRestaurant_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'FullServiceRestaurant', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/FullServiceRestaurant-BTAPPRE1980-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAPPRE1980_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAPPRE1980_NaturalGasHPGasBackup.rb index 2d946a7662..8cbe04e703 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAPPRE1980_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_BTAPPRE1980_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_FullServiceRestaurant_BTAPPRE1980_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_FullServiceRestaurant_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'FullServiceRestaurant',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/FullServiceRestaurant-BTAPPRE1980-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_FullServiceRestaurant_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'FullServiceRestaurant', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/FullServiceRestaurant-BTAPPRE1980-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2011_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2011_Electricity.rb index e167e6bcaa..2fd48e70c3 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2011_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2011_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_FullServiceRestaurant_NECB2011_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_FullServiceRestaurant_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'FullServiceRestaurant',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/FullServiceRestaurant-NECB2011-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_FullServiceRestaurant_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'FullServiceRestaurant', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/FullServiceRestaurant-NECB2011-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2011_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2011_ElectricityHPElecBackup.rb index 9294620229..a8da59a523 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2011_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2011_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_FullServiceRestaurant_NECB2011_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_FullServiceRestaurant_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'FullServiceRestaurant',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/FullServiceRestaurant-NECB2011-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_FullServiceRestaurant_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'FullServiceRestaurant', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/FullServiceRestaurant-NECB2011-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2011_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2011_ElectricityHPGasBackupMixed.rb index 45ec245c24..ccdc50d1ac 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2011_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2011_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_FullServiceRestaurant_NECB2011_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_FullServiceRestaurant_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'FullServiceRestaurant',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/FullServiceRestaurant-NECB2011-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_FullServiceRestaurant_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'FullServiceRestaurant', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/FullServiceRestaurant-NECB2011-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2011_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2011_NaturalGas.rb index db7b506fa7..e8d94ab2d7 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2011_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2011_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_FullServiceRestaurant_NECB2011_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_FullServiceRestaurant_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'FullServiceRestaurant',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/FullServiceRestaurant-NECB2011-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_FullServiceRestaurant_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'FullServiceRestaurant', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/FullServiceRestaurant-NECB2011-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2011_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2011_NaturalGasHPElecBackupMixed.rb index 8c06d6821e..8826c3a186 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2011_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2011_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_FullServiceRestaurant_NECB2011_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_FullServiceRestaurant_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'FullServiceRestaurant',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/FullServiceRestaurant-NECB2011-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_FullServiceRestaurant_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'FullServiceRestaurant', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/FullServiceRestaurant-NECB2011-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2011_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2011_NaturalGasHPGasBackup.rb index e864b28417..a4f21a777a 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2011_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2011_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_FullServiceRestaurant_NECB2011_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_FullServiceRestaurant_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'FullServiceRestaurant',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/FullServiceRestaurant-NECB2011-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_FullServiceRestaurant_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'FullServiceRestaurant', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/FullServiceRestaurant-NECB2011-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2015_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2015_Electricity.rb index fcf0c28b3a..885db71530 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2015_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2015_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_FullServiceRestaurant_NECB2015_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_FullServiceRestaurant_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'FullServiceRestaurant',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/FullServiceRestaurant-NECB2015-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_FullServiceRestaurant_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'FullServiceRestaurant', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/FullServiceRestaurant-NECB2015-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2015_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2015_ElectricityHPElecBackup.rb index 42d9808c76..040a24db9d 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2015_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2015_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_FullServiceRestaurant_NECB2015_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_FullServiceRestaurant_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'FullServiceRestaurant',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/FullServiceRestaurant-NECB2015-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_FullServiceRestaurant_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'FullServiceRestaurant', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/FullServiceRestaurant-NECB2015-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2015_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2015_ElectricityHPGasBackupMixed.rb index ef2c5605e2..53e8318476 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2015_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2015_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_FullServiceRestaurant_NECB2015_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_FullServiceRestaurant_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'FullServiceRestaurant',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/FullServiceRestaurant-NECB2015-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_FullServiceRestaurant_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'FullServiceRestaurant', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/FullServiceRestaurant-NECB2015-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2015_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2015_NaturalGas.rb index 2f0aa37a8f..61c31e605c 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2015_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2015_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_FullServiceRestaurant_NECB2015_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_FullServiceRestaurant_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'FullServiceRestaurant',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/FullServiceRestaurant-NECB2015-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_FullServiceRestaurant_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'FullServiceRestaurant', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/FullServiceRestaurant-NECB2015-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2015_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2015_NaturalGasHPElecBackupMixed.rb index ff9ca1fd0a..b202a1ce4a 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2015_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2015_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_FullServiceRestaurant_NECB2015_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_FullServiceRestaurant_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'FullServiceRestaurant',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/FullServiceRestaurant-NECB2015-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_FullServiceRestaurant_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'FullServiceRestaurant', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/FullServiceRestaurant-NECB2015-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2015_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2015_NaturalGasHPGasBackup.rb index dc1408e968..ad77db9d29 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2015_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2015_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_FullServiceRestaurant_NECB2015_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_FullServiceRestaurant_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'FullServiceRestaurant',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/FullServiceRestaurant-NECB2015-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_FullServiceRestaurant_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'FullServiceRestaurant', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/FullServiceRestaurant-NECB2015-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2017_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2017_Electricity.rb index 8c627aa992..8fd656788f 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2017_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2017_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_FullServiceRestaurant_NECB2017_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_FullServiceRestaurant_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'FullServiceRestaurant',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/FullServiceRestaurant-NECB2017-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_FullServiceRestaurant_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'FullServiceRestaurant', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/FullServiceRestaurant-NECB2017-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2017_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2017_ElectricityHPElecBackup.rb index fae3318f2e..9ca4429b4f 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2017_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2017_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_FullServiceRestaurant_NECB2017_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_FullServiceRestaurant_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'FullServiceRestaurant',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/FullServiceRestaurant-NECB2017-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_FullServiceRestaurant_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'FullServiceRestaurant', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/FullServiceRestaurant-NECB2017-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2017_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2017_ElectricityHPGasBackupMixed.rb index 5f132d9090..272424cf66 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2017_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2017_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_FullServiceRestaurant_NECB2017_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_FullServiceRestaurant_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'FullServiceRestaurant',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/FullServiceRestaurant-NECB2017-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_FullServiceRestaurant_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'FullServiceRestaurant', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/FullServiceRestaurant-NECB2017-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2017_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2017_NaturalGas.rb index e3784769a0..6eb7504a49 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2017_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2017_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_FullServiceRestaurant_NECB2017_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_FullServiceRestaurant_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'FullServiceRestaurant',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/FullServiceRestaurant-NECB2017-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_FullServiceRestaurant_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'FullServiceRestaurant', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/FullServiceRestaurant-NECB2017-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2017_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2017_NaturalGasHPElecBackupMixed.rb index 671ea36ffb..442eb27c73 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2017_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2017_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_FullServiceRestaurant_NECB2017_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_FullServiceRestaurant_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'FullServiceRestaurant',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/FullServiceRestaurant-NECB2017-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_FullServiceRestaurant_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'FullServiceRestaurant', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/FullServiceRestaurant-NECB2017-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2017_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2017_NaturalGasHPGasBackup.rb index 2810b67244..30d3b2564a 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2017_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2017_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_FullServiceRestaurant_NECB2017_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_FullServiceRestaurant_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'FullServiceRestaurant',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/FullServiceRestaurant-NECB2017-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_FullServiceRestaurant_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'FullServiceRestaurant', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/FullServiceRestaurant-NECB2017-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2020_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2020_Electricity.rb index 1cfebec91b..bed806dec6 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2020_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2020_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_FullServiceRestaurant_NECB2020_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_FullServiceRestaurant_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'FullServiceRestaurant',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/FullServiceRestaurant-NECB2020-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_FullServiceRestaurant_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'FullServiceRestaurant', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/FullServiceRestaurant-NECB2020-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2020_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2020_ElectricityHPElecBackup.rb index 1bb47e7509..3f9def0063 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2020_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2020_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_FullServiceRestaurant_NECB2020_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_FullServiceRestaurant_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'FullServiceRestaurant',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/FullServiceRestaurant-NECB2020-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_FullServiceRestaurant_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'FullServiceRestaurant', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/FullServiceRestaurant-NECB2020-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2020_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2020_ElectricityHPGasBackupMixed.rb index 3762c87caa..c44b47dd82 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2020_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2020_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_FullServiceRestaurant_NECB2020_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_FullServiceRestaurant_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'FullServiceRestaurant',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/FullServiceRestaurant-NECB2020-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_FullServiceRestaurant_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'FullServiceRestaurant', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/FullServiceRestaurant-NECB2020-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2020_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2020_NaturalGas.rb index 6dfe80c783..6e60fa8cfd 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2020_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2020_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_FullServiceRestaurant_NECB2020_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_FullServiceRestaurant_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'FullServiceRestaurant',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/FullServiceRestaurant-NECB2020-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_FullServiceRestaurant_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'FullServiceRestaurant', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/FullServiceRestaurant-NECB2020-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2020_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2020_NaturalGasHPElecBackupMixed.rb index 5f2f993778..6b282f9ef1 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2020_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2020_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_FullServiceRestaurant_NECB2020_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_FullServiceRestaurant_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'FullServiceRestaurant',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/FullServiceRestaurant-NECB2020-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_FullServiceRestaurant_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'FullServiceRestaurant', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/FullServiceRestaurant-NECB2020-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2020_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2020_NaturalGasHPGasBackup.rb index 8b704cda7e..ce830d66f9 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2020_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_FullServiceRestaurant_NECB2020_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_FullServiceRestaurant_NECB2020_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_FullServiceRestaurant_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'FullServiceRestaurant',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/FullServiceRestaurant-NECB2020-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_FullServiceRestaurant_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'FullServiceRestaurant', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/FullServiceRestaurant-NECB2020-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAP1980TO2010_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAP1980TO2010_Electricity.rb index 4ab0a07165..6ee8af2afa 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAP1980TO2010_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAP1980TO2010_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_HighriseApartment_BTAP1980TO2010_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_HighriseApartment_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'HighriseApartment',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/HighriseApartment-BTAP1980TO2010-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_HighriseApartment_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'HighriseApartment', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/HighriseApartment-BTAP1980TO2010-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAP1980TO2010_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAP1980TO2010_ElectricityHPElecBackup.rb index 3fae3631a3..d899815bd3 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAP1980TO2010_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAP1980TO2010_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_HighriseApartment_BTAP1980TO2010_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_HighriseApartment_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'HighriseApartment',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/HighriseApartment-BTAP1980TO2010-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_HighriseApartment_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'HighriseApartment', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/HighriseApartment-BTAP1980TO2010-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb index 058151f7b8..cd8d1ee1dd 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_HighriseApartment_BTAP1980TO2010_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_HighriseApartment_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'HighriseApartment',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/HighriseApartment-BTAP1980TO2010-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_HighriseApartment_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'HighriseApartment', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/HighriseApartment-BTAP1980TO2010-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAP1980TO2010_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAP1980TO2010_NaturalGas.rb index 531bcde0d6..a652702a67 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAP1980TO2010_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAP1980TO2010_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_HighriseApartment_BTAP1980TO2010_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_HighriseApartment_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'HighriseApartment',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/HighriseApartment-BTAP1980TO2010-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_HighriseApartment_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'HighriseApartment', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/HighriseApartment-BTAP1980TO2010-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb index a744cf43a0..475d954cd7 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_HighriseApartment_BTAP1980TO2010_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_HighriseApartment_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'HighriseApartment',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/HighriseApartment-BTAP1980TO2010-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_HighriseApartment_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'HighriseApartment', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/HighriseApartment-BTAP1980TO2010-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAP1980TO2010_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAP1980TO2010_NaturalGasHPGasBackup.rb index 38b75ef709..cf6293d6ad 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAP1980TO2010_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAP1980TO2010_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_HighriseApartment_BTAP1980TO2010_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_HighriseApartment_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'HighriseApartment',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/HighriseApartment-BTAP1980TO2010-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_HighriseApartment_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'HighriseApartment', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/HighriseApartment-BTAP1980TO2010-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAPPRE1980_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAPPRE1980_Electricity.rb index 59115c31a3..5812ee01dc 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAPPRE1980_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAPPRE1980_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_HighriseApartment_BTAPPRE1980_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_HighriseApartment_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'HighriseApartment',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/HighriseApartment-BTAPPRE1980-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_HighriseApartment_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'HighriseApartment', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/HighriseApartment-BTAPPRE1980-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAPPRE1980_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAPPRE1980_ElectricityHPElecBackup.rb index 693bd5e523..b1fc528e23 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAPPRE1980_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAPPRE1980_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_HighriseApartment_BTAPPRE1980_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_HighriseApartment_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'HighriseApartment',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/HighriseApartment-BTAPPRE1980-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_HighriseApartment_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'HighriseApartment', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/HighriseApartment-BTAPPRE1980-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAPPRE1980_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAPPRE1980_ElectricityHPGasBackupMixed.rb index 806c1b9b6b..7c551fb017 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAPPRE1980_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAPPRE1980_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_HighriseApartment_BTAPPRE1980_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_HighriseApartment_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'HighriseApartment',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/HighriseApartment-BTAPPRE1980-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_HighriseApartment_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'HighriseApartment', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/HighriseApartment-BTAPPRE1980-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAPPRE1980_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAPPRE1980_NaturalGas.rb index ff00ed3b8a..a04cb5c621 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAPPRE1980_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAPPRE1980_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_HighriseApartment_BTAPPRE1980_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_HighriseApartment_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'HighriseApartment',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/HighriseApartment-BTAPPRE1980-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_HighriseApartment_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'HighriseApartment', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/HighriseApartment-BTAPPRE1980-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb index 1c51c58912..e78813f13c 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_HighriseApartment_BTAPPRE1980_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_HighriseApartment_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'HighriseApartment',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/HighriseApartment-BTAPPRE1980-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_HighriseApartment_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'HighriseApartment', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/HighriseApartment-BTAPPRE1980-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAPPRE1980_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAPPRE1980_NaturalGasHPGasBackup.rb index 2cae0be047..556cc39e46 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAPPRE1980_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_BTAPPRE1980_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_HighriseApartment_BTAPPRE1980_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_HighriseApartment_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'HighriseApartment',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/HighriseApartment-BTAPPRE1980-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_HighriseApartment_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'HighriseApartment', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/HighriseApartment-BTAPPRE1980-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2011_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2011_Electricity.rb index 8a3a8abccc..9a6aba3a96 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2011_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2011_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_HighriseApartment_NECB2011_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_HighriseApartment_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'HighriseApartment',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/HighriseApartment-NECB2011-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_HighriseApartment_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'HighriseApartment', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/HighriseApartment-NECB2011-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2011_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2011_ElectricityHPElecBackup.rb index f02b2e23fa..5373b7c2a0 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2011_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2011_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_HighriseApartment_NECB2011_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_HighriseApartment_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'HighriseApartment',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/HighriseApartment-NECB2011-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_HighriseApartment_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'HighriseApartment', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/HighriseApartment-NECB2011-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2011_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2011_ElectricityHPGasBackupMixed.rb index 1dc8ad6c99..b8a1ef52d2 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2011_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2011_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_HighriseApartment_NECB2011_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_HighriseApartment_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'HighriseApartment',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/HighriseApartment-NECB2011-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_HighriseApartment_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'HighriseApartment', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/HighriseApartment-NECB2011-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2011_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2011_NaturalGas.rb index f8d80e7d67..404d10e5d8 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2011_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2011_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_HighriseApartment_NECB2011_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_HighriseApartment_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'HighriseApartment',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/HighriseApartment-NECB2011-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_HighriseApartment_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'HighriseApartment', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/HighriseApartment-NECB2011-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2011_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2011_NaturalGasHPElecBackupMixed.rb index f739721e20..782bf26b8a 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2011_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2011_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_HighriseApartment_NECB2011_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_HighriseApartment_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'HighriseApartment',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/HighriseApartment-NECB2011-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_HighriseApartment_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'HighriseApartment', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/HighriseApartment-NECB2011-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2011_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2011_NaturalGasHPGasBackup.rb index 8126f769d7..78545dd116 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2011_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2011_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_HighriseApartment_NECB2011_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_HighriseApartment_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'HighriseApartment',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/HighriseApartment-NECB2011-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_HighriseApartment_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'HighriseApartment', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/HighriseApartment-NECB2011-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2015_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2015_Electricity.rb index fa126b9361..3913139029 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2015_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2015_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_HighriseApartment_NECB2015_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_HighriseApartment_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'HighriseApartment',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/HighriseApartment-NECB2015-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_HighriseApartment_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'HighriseApartment', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/HighriseApartment-NECB2015-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2015_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2015_ElectricityHPElecBackup.rb index e2c14f0d4d..ef8da3ff5d 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2015_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2015_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_HighriseApartment_NECB2015_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_HighriseApartment_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'HighriseApartment',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/HighriseApartment-NECB2015-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_HighriseApartment_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'HighriseApartment', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/HighriseApartment-NECB2015-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2015_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2015_ElectricityHPGasBackupMixed.rb index 9a3ab48df2..68762b202a 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2015_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2015_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_HighriseApartment_NECB2015_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_HighriseApartment_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'HighriseApartment',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/HighriseApartment-NECB2015-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_HighriseApartment_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'HighriseApartment', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/HighriseApartment-NECB2015-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2015_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2015_NaturalGas.rb index 4e8f0b0a0c..50d2719e1d 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2015_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2015_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_HighriseApartment_NECB2015_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_HighriseApartment_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'HighriseApartment',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/HighriseApartment-NECB2015-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_HighriseApartment_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'HighriseApartment', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/HighriseApartment-NECB2015-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2015_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2015_NaturalGasHPElecBackupMixed.rb index 5af3ae774f..f7c8d51170 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2015_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2015_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_HighriseApartment_NECB2015_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_HighriseApartment_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'HighriseApartment',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/HighriseApartment-NECB2015-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_HighriseApartment_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'HighriseApartment', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/HighriseApartment-NECB2015-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2015_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2015_NaturalGasHPGasBackup.rb index 07795e9df9..605269b23f 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2015_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2015_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_HighriseApartment_NECB2015_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_HighriseApartment_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'HighriseApartment',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/HighriseApartment-NECB2015-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_HighriseApartment_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'HighriseApartment', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/HighriseApartment-NECB2015-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2017_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2017_Electricity.rb index b3822e7094..560636f081 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2017_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2017_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_HighriseApartment_NECB2017_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_HighriseApartment_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'HighriseApartment',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/HighriseApartment-NECB2017-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_HighriseApartment_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'HighriseApartment', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/HighriseApartment-NECB2017-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2017_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2017_ElectricityHPElecBackup.rb index c481c9aa41..d38630bc4a 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2017_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2017_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_HighriseApartment_NECB2017_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_HighriseApartment_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'HighriseApartment',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/HighriseApartment-NECB2017-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_HighriseApartment_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'HighriseApartment', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/HighriseApartment-NECB2017-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2017_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2017_ElectricityHPGasBackupMixed.rb index e1622b698f..6d45d96fe1 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2017_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2017_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_HighriseApartment_NECB2017_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_HighriseApartment_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'HighriseApartment',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/HighriseApartment-NECB2017-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_HighriseApartment_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'HighriseApartment', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/HighriseApartment-NECB2017-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2017_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2017_NaturalGas.rb index 5e555c82d4..2d9e248980 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2017_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2017_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_HighriseApartment_NECB2017_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_HighriseApartment_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'HighriseApartment',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/HighriseApartment-NECB2017-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_HighriseApartment_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'HighriseApartment', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/HighriseApartment-NECB2017-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2017_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2017_NaturalGasHPElecBackupMixed.rb index 091ade6ceb..435564f39e 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2017_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2017_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_HighriseApartment_NECB2017_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_HighriseApartment_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'HighriseApartment',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/HighriseApartment-NECB2017-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_HighriseApartment_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'HighriseApartment', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/HighriseApartment-NECB2017-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2017_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2017_NaturalGasHPGasBackup.rb index b0716d141b..59fe7da7af 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2017_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2017_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_HighriseApartment_NECB2017_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_HighriseApartment_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'HighriseApartment',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/HighriseApartment-NECB2017-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_HighriseApartment_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'HighriseApartment', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/HighriseApartment-NECB2017-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2020_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2020_Electricity.rb index 9a3a3335fc..4973fe031b 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2020_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2020_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_HighriseApartment_NECB2020_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_HighriseApartment_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'HighriseApartment',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/HighriseApartment-NECB2020-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_HighriseApartment_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'HighriseApartment', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/HighriseApartment-NECB2020-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2020_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2020_ElectricityHPElecBackup.rb index 39ed038034..edbe5efb20 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2020_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2020_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_HighriseApartment_NECB2020_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_HighriseApartment_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'HighriseApartment',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/HighriseApartment-NECB2020-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_HighriseApartment_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'HighriseApartment', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/HighriseApartment-NECB2020-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2020_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2020_ElectricityHPGasBackupMixed.rb index 80e1f98515..b8cf4d000f 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2020_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2020_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_HighriseApartment_NECB2020_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_HighriseApartment_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'HighriseApartment',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/HighriseApartment-NECB2020-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_HighriseApartment_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'HighriseApartment', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/HighriseApartment-NECB2020-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2020_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2020_NaturalGas.rb index 9648521e9c..875afcb7da 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2020_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2020_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_HighriseApartment_NECB2020_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_HighriseApartment_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'HighriseApartment',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/HighriseApartment-NECB2020-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_HighriseApartment_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'HighriseApartment', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/HighriseApartment-NECB2020-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2020_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2020_NaturalGasHPElecBackupMixed.rb index 1b7d486339..3bf44c7739 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2020_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2020_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_HighriseApartment_NECB2020_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_HighriseApartment_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'HighriseApartment',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/HighriseApartment-NECB2020-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_HighriseApartment_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'HighriseApartment', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/HighriseApartment-NECB2020-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2020_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2020_NaturalGasHPGasBackup.rb index 6851d429fd..5e377832dc 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2020_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_HighriseApartment_NECB2020_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_HighriseApartment_NECB2020_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_HighriseApartment_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'HighriseApartment',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/HighriseApartment-NECB2020-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_HighriseApartment_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'HighriseApartment', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/HighriseApartment-NECB2020-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAP1980TO2010_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAP1980TO2010_Electricity.rb index 78227792c3..c6eed7fde1 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAP1980TO2010_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAP1980TO2010_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Hospital_BTAP1980TO2010_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_Hospital_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'Hospital',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Hospital-BTAP1980TO2010-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_Hospital_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'Hospital', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Hospital-BTAP1980TO2010-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAP1980TO2010_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAP1980TO2010_ElectricityHPElecBackup.rb index 4affd3c7b7..41b8384222 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAP1980TO2010_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAP1980TO2010_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Hospital_BTAP1980TO2010_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_Hospital_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'Hospital',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Hospital-BTAP1980TO2010-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_Hospital_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'Hospital', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Hospital-BTAP1980TO2010-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb index 17f0497dab..f4e26a77a6 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Hospital_BTAP1980TO2010_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_Hospital_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'Hospital',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Hospital-BTAP1980TO2010-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_Hospital_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'Hospital', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Hospital-BTAP1980TO2010-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAP1980TO2010_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAP1980TO2010_NaturalGas.rb index ae1633b624..17b7b00ad5 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAP1980TO2010_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAP1980TO2010_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Hospital_BTAP1980TO2010_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_Hospital_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'Hospital',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Hospital-BTAP1980TO2010-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_Hospital_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'Hospital', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Hospital-BTAP1980TO2010-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb index 2412328816..999f644b01 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Hospital_BTAP1980TO2010_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_Hospital_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'Hospital',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Hospital-BTAP1980TO2010-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_Hospital_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'Hospital', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Hospital-BTAP1980TO2010-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAP1980TO2010_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAP1980TO2010_NaturalGasHPGasBackup.rb index 2155c0c02d..8115810f20 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAP1980TO2010_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAP1980TO2010_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Hospital_BTAP1980TO2010_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_Hospital_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'Hospital',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Hospital-BTAP1980TO2010-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_Hospital_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'Hospital', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Hospital-BTAP1980TO2010-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAPPRE1980_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAPPRE1980_Electricity.rb index 67d8e2ce43..ff48b0c1c6 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAPPRE1980_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAPPRE1980_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Hospital_BTAPPRE1980_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_Hospital_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'Hospital',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Hospital-BTAPPRE1980-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_Hospital_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'Hospital', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Hospital-BTAPPRE1980-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAPPRE1980_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAPPRE1980_ElectricityHPElecBackup.rb index 44ce09b180..c18c0f655e 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAPPRE1980_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAPPRE1980_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Hospital_BTAPPRE1980_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_Hospital_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'Hospital',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Hospital-BTAPPRE1980-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_Hospital_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'Hospital', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Hospital-BTAPPRE1980-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAPPRE1980_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAPPRE1980_ElectricityHPGasBackupMixed.rb index bf88467522..8a5067796b 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAPPRE1980_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAPPRE1980_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Hospital_BTAPPRE1980_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_Hospital_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'Hospital',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Hospital-BTAPPRE1980-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_Hospital_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'Hospital', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Hospital-BTAPPRE1980-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAPPRE1980_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAPPRE1980_NaturalGas.rb index b16cbdb397..3c58a99666 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAPPRE1980_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAPPRE1980_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Hospital_BTAPPRE1980_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_Hospital_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'Hospital',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Hospital-BTAPPRE1980-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_Hospital_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'Hospital', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Hospital-BTAPPRE1980-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb index a69eafc3d1..fc12be0324 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Hospital_BTAPPRE1980_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_Hospital_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'Hospital',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Hospital-BTAPPRE1980-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_Hospital_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'Hospital', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Hospital-BTAPPRE1980-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAPPRE1980_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAPPRE1980_NaturalGasHPGasBackup.rb index 427a822add..43964b838b 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAPPRE1980_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_BTAPPRE1980_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Hospital_BTAPPRE1980_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_Hospital_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'Hospital',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Hospital-BTAPPRE1980-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_Hospital_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'Hospital', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Hospital-BTAPPRE1980-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2011_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2011_Electricity.rb index 1edaadbae6..7d54c5d30a 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2011_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2011_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Hospital_NECB2011_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_Hospital_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'Hospital',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Hospital-NECB2011-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_Hospital_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'Hospital', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Hospital-NECB2011-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2011_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2011_ElectricityHPElecBackup.rb index cf5b39368c..5eb9bd74d5 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2011_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2011_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Hospital_NECB2011_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_Hospital_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'Hospital',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Hospital-NECB2011-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_Hospital_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'Hospital', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Hospital-NECB2011-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2011_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2011_ElectricityHPGasBackupMixed.rb index caf67f486a..e63ccf9495 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2011_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2011_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Hospital_NECB2011_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_Hospital_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'Hospital',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Hospital-NECB2011-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_Hospital_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'Hospital', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Hospital-NECB2011-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2011_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2011_NaturalGas.rb index eb920b5914..fe0774cca2 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2011_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2011_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Hospital_NECB2011_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_Hospital_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'Hospital',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Hospital-NECB2011-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_Hospital_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'Hospital', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Hospital-NECB2011-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2011_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2011_NaturalGasHPElecBackupMixed.rb index f075f9a28e..84a886141c 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2011_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2011_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Hospital_NECB2011_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_Hospital_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'Hospital',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Hospital-NECB2011-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_Hospital_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'Hospital', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Hospital-NECB2011-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2011_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2011_NaturalGasHPGasBackup.rb index 24ec5ade58..1ca352d0d9 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2011_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2011_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Hospital_NECB2011_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_Hospital_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'Hospital',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Hospital-NECB2011-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_Hospital_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'Hospital', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Hospital-NECB2011-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2015_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2015_Electricity.rb index ec9425785d..e6bc79c5ac 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2015_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2015_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Hospital_NECB2015_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_Hospital_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'Hospital',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Hospital-NECB2015-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_Hospital_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'Hospital', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Hospital-NECB2015-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2015_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2015_ElectricityHPElecBackup.rb index 9bdd2c7c8c..b50e0a1c47 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2015_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2015_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Hospital_NECB2015_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_Hospital_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'Hospital',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Hospital-NECB2015-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_Hospital_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'Hospital', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Hospital-NECB2015-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2015_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2015_ElectricityHPGasBackupMixed.rb index b94ce5a04b..328bbfbfe0 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2015_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2015_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Hospital_NECB2015_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_Hospital_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'Hospital',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Hospital-NECB2015-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_Hospital_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'Hospital', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Hospital-NECB2015-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2015_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2015_NaturalGas.rb index 0ae2605a18..686456d30e 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2015_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2015_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Hospital_NECB2015_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_Hospital_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'Hospital',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Hospital-NECB2015-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_Hospital_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'Hospital', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Hospital-NECB2015-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2015_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2015_NaturalGasHPElecBackupMixed.rb index ac5769ef99..fbe5a938b4 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2015_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2015_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Hospital_NECB2015_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_Hospital_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'Hospital',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Hospital-NECB2015-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_Hospital_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'Hospital', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Hospital-NECB2015-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2015_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2015_NaturalGasHPGasBackup.rb index ea9a6b934e..09df9bd574 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2015_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2015_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Hospital_NECB2015_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_Hospital_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'Hospital',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Hospital-NECB2015-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_Hospital_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'Hospital', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Hospital-NECB2015-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2017_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2017_Electricity.rb index bbdd06aa71..ae76978a1c 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2017_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2017_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Hospital_NECB2017_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_Hospital_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'Hospital',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Hospital-NECB2017-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_Hospital_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'Hospital', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Hospital-NECB2017-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2017_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2017_ElectricityHPElecBackup.rb index da79d267ee..d1cd864d60 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2017_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2017_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Hospital_NECB2017_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_Hospital_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'Hospital',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Hospital-NECB2017-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_Hospital_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'Hospital', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Hospital-NECB2017-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2017_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2017_ElectricityHPGasBackupMixed.rb index 85a0cb5e5f..95a32f691d 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2017_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2017_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Hospital_NECB2017_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_Hospital_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'Hospital',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Hospital-NECB2017-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_Hospital_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'Hospital', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Hospital-NECB2017-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2017_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2017_NaturalGas.rb index 0058685d33..39bcd5f591 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2017_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2017_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Hospital_NECB2017_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_Hospital_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'Hospital',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Hospital-NECB2017-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_Hospital_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'Hospital', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Hospital-NECB2017-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2017_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2017_NaturalGasHPElecBackupMixed.rb index d9197f39f1..6a88c15717 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2017_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2017_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Hospital_NECB2017_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_Hospital_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'Hospital',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Hospital-NECB2017-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_Hospital_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'Hospital', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Hospital-NECB2017-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2017_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2017_NaturalGasHPGasBackup.rb index a8fb56a4b7..2a945ce5ea 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2017_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2017_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Hospital_NECB2017_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_Hospital_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'Hospital',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Hospital-NECB2017-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_Hospital_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'Hospital', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Hospital-NECB2017-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2020_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2020_Electricity.rb index 15c392ab2d..836e8deeb3 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2020_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2020_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Hospital_NECB2020_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_Hospital_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'Hospital',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Hospital-NECB2020-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_Hospital_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'Hospital', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Hospital-NECB2020-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2020_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2020_ElectricityHPElecBackup.rb index 862de473f2..1b3b108056 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2020_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2020_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Hospital_NECB2020_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_Hospital_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'Hospital',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Hospital-NECB2020-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_Hospital_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'Hospital', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Hospital-NECB2020-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2020_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2020_ElectricityHPGasBackupMixed.rb index f04dcc57ec..b8f6575115 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2020_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2020_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Hospital_NECB2020_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_Hospital_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'Hospital',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Hospital-NECB2020-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_Hospital_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'Hospital', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Hospital-NECB2020-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2020_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2020_NaturalGas.rb index c0cc3c9843..a93a677129 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2020_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2020_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Hospital_NECB2020_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_Hospital_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'Hospital',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Hospital-NECB2020-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_Hospital_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'Hospital', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Hospital-NECB2020-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2020_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2020_NaturalGasHPElecBackupMixed.rb index 4d9b5852fc..94a6ee5d2b 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2020_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2020_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Hospital_NECB2020_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_Hospital_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'Hospital',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Hospital-NECB2020-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_Hospital_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'Hospital', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Hospital-NECB2020-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2020_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2020_NaturalGasHPGasBackup.rb index 6999c87d56..6581371ea2 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2020_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Hospital_NECB2020_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Hospital_NECB2020_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_Hospital_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'Hospital',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Hospital-NECB2020-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_Hospital_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'Hospital', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Hospital-NECB2020-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAP1980TO2010_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAP1980TO2010_Electricity.rb index ed90f8c996..95aa389a7f 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAP1980TO2010_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAP1980TO2010_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeHotel_BTAP1980TO2010_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_LargeHotel_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'LargeHotel',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeHotel-BTAP1980TO2010-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_LargeHotel_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'LargeHotel', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeHotel-BTAP1980TO2010-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAP1980TO2010_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAP1980TO2010_ElectricityHPElecBackup.rb index c440818fb4..ed1ef33dc3 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAP1980TO2010_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAP1980TO2010_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeHotel_BTAP1980TO2010_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_LargeHotel_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'LargeHotel',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeHotel-BTAP1980TO2010-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_LargeHotel_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'LargeHotel', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeHotel-BTAP1980TO2010-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb index 663b167247..f34f0e0d5c 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeHotel_BTAP1980TO2010_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_LargeHotel_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'LargeHotel',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeHotel-BTAP1980TO2010-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_LargeHotel_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'LargeHotel', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeHotel-BTAP1980TO2010-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAP1980TO2010_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAP1980TO2010_NaturalGas.rb index 05eb7db22e..45c052dae9 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAP1980TO2010_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAP1980TO2010_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeHotel_BTAP1980TO2010_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_LargeHotel_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'LargeHotel',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeHotel-BTAP1980TO2010-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_LargeHotel_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'LargeHotel', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeHotel-BTAP1980TO2010-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb index f6dfeeedbe..de3adf008a 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeHotel_BTAP1980TO2010_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_LargeHotel_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'LargeHotel',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeHotel-BTAP1980TO2010-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_LargeHotel_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'LargeHotel', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeHotel-BTAP1980TO2010-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAP1980TO2010_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAP1980TO2010_NaturalGasHPGasBackup.rb index b4c270676a..1a6b51e8e1 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAP1980TO2010_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAP1980TO2010_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeHotel_BTAP1980TO2010_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_LargeHotel_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'LargeHotel',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeHotel-BTAP1980TO2010-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_LargeHotel_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'LargeHotel', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeHotel-BTAP1980TO2010-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAPPRE1980_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAPPRE1980_Electricity.rb index 6f4b8da3d2..43f040696c 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAPPRE1980_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAPPRE1980_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeHotel_BTAPPRE1980_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_LargeHotel_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'LargeHotel',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeHotel-BTAPPRE1980-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_LargeHotel_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'LargeHotel', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeHotel-BTAPPRE1980-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAPPRE1980_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAPPRE1980_ElectricityHPElecBackup.rb index 3ffcb9d4d1..c7ec3f4862 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAPPRE1980_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAPPRE1980_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeHotel_BTAPPRE1980_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_LargeHotel_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'LargeHotel',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeHotel-BTAPPRE1980-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_LargeHotel_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'LargeHotel', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeHotel-BTAPPRE1980-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAPPRE1980_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAPPRE1980_ElectricityHPGasBackupMixed.rb index d43687b9ef..9178d83bc7 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAPPRE1980_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAPPRE1980_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeHotel_BTAPPRE1980_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_LargeHotel_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'LargeHotel',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeHotel-BTAPPRE1980-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_LargeHotel_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'LargeHotel', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeHotel-BTAPPRE1980-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAPPRE1980_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAPPRE1980_NaturalGas.rb index ef616a14e2..ece9100e7b 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAPPRE1980_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAPPRE1980_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeHotel_BTAPPRE1980_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_LargeHotel_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'LargeHotel',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeHotel-BTAPPRE1980-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_LargeHotel_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'LargeHotel', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeHotel-BTAPPRE1980-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb index bdb6447e33..4ee5cfdc97 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeHotel_BTAPPRE1980_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_LargeHotel_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'LargeHotel',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeHotel-BTAPPRE1980-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_LargeHotel_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'LargeHotel', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeHotel-BTAPPRE1980-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAPPRE1980_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAPPRE1980_NaturalGasHPGasBackup.rb index 69f6806c32..b02d58a75d 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAPPRE1980_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_BTAPPRE1980_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeHotel_BTAPPRE1980_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_LargeHotel_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'LargeHotel',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeHotel-BTAPPRE1980-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_LargeHotel_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'LargeHotel', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeHotel-BTAPPRE1980-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2011_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2011_Electricity.rb index 9c8775bcc2..a0d8ea174d 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2011_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2011_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeHotel_NECB2011_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_LargeHotel_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'LargeHotel',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeHotel-NECB2011-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_LargeHotel_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'LargeHotel', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeHotel-NECB2011-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2011_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2011_ElectricityHPElecBackup.rb index bacf6f9992..815032ed6e 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2011_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2011_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeHotel_NECB2011_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_LargeHotel_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'LargeHotel',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeHotel-NECB2011-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_LargeHotel_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'LargeHotel', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeHotel-NECB2011-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2011_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2011_ElectricityHPGasBackupMixed.rb index fce6d92916..c905a92738 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2011_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2011_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeHotel_NECB2011_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_LargeHotel_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'LargeHotel',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeHotel-NECB2011-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_LargeHotel_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'LargeHotel', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeHotel-NECB2011-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2011_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2011_NaturalGas.rb index 6992d6db7d..9b0de3ce53 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2011_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2011_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeHotel_NECB2011_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_LargeHotel_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'LargeHotel',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeHotel-NECB2011-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_LargeHotel_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'LargeHotel', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeHotel-NECB2011-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2011_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2011_NaturalGasHPElecBackupMixed.rb index 2c454b9bf7..7cf0681f01 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2011_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2011_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeHotel_NECB2011_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_LargeHotel_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'LargeHotel',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeHotel-NECB2011-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_LargeHotel_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'LargeHotel', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeHotel-NECB2011-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2011_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2011_NaturalGasHPGasBackup.rb index e62bbfe8f6..a8f33c4940 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2011_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2011_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeHotel_NECB2011_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_LargeHotel_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'LargeHotel',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeHotel-NECB2011-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_LargeHotel_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'LargeHotel', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeHotel-NECB2011-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2015_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2015_Electricity.rb index 84106068f6..25706b1f5a 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2015_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2015_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeHotel_NECB2015_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_LargeHotel_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'LargeHotel',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeHotel-NECB2015-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_LargeHotel_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'LargeHotel', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeHotel-NECB2015-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2015_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2015_ElectricityHPElecBackup.rb index c09b7d7876..0e42a72f25 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2015_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2015_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeHotel_NECB2015_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_LargeHotel_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'LargeHotel',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeHotel-NECB2015-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_LargeHotel_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'LargeHotel', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeHotel-NECB2015-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2015_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2015_ElectricityHPGasBackupMixed.rb index 59b68e5592..1d27addd0d 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2015_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2015_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeHotel_NECB2015_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_LargeHotel_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'LargeHotel',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeHotel-NECB2015-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_LargeHotel_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'LargeHotel', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeHotel-NECB2015-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2015_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2015_NaturalGas.rb index 7993e3edb7..5c4256069c 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2015_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2015_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeHotel_NECB2015_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_LargeHotel_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'LargeHotel',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeHotel-NECB2015-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_LargeHotel_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'LargeHotel', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeHotel-NECB2015-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2015_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2015_NaturalGasHPElecBackupMixed.rb index 0f975e04e7..b596baf4e5 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2015_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2015_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeHotel_NECB2015_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_LargeHotel_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'LargeHotel',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeHotel-NECB2015-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_LargeHotel_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'LargeHotel', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeHotel-NECB2015-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2015_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2015_NaturalGasHPGasBackup.rb index a533162ab0..d74c102add 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2015_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2015_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeHotel_NECB2015_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_LargeHotel_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'LargeHotel',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeHotel-NECB2015-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_LargeHotel_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'LargeHotel', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeHotel-NECB2015-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2017_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2017_Electricity.rb index 97e53afd84..cea60867b2 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2017_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2017_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeHotel_NECB2017_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_LargeHotel_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'LargeHotel',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeHotel-NECB2017-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_LargeHotel_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'LargeHotel', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeHotel-NECB2017-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2017_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2017_ElectricityHPElecBackup.rb index 0c8f6530c2..128ca58676 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2017_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2017_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeHotel_NECB2017_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_LargeHotel_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'LargeHotel',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeHotel-NECB2017-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_LargeHotel_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'LargeHotel', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeHotel-NECB2017-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2017_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2017_ElectricityHPGasBackupMixed.rb index 62ce68f2db..4d5495a9b6 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2017_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2017_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeHotel_NECB2017_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_LargeHotel_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'LargeHotel',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeHotel-NECB2017-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_LargeHotel_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'LargeHotel', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeHotel-NECB2017-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2017_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2017_NaturalGas.rb index ce638d1fca..ba86ee6434 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2017_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2017_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeHotel_NECB2017_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_LargeHotel_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'LargeHotel',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeHotel-NECB2017-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_LargeHotel_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'LargeHotel', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeHotel-NECB2017-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2017_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2017_NaturalGasHPElecBackupMixed.rb index 51818c05e7..29e37ab02a 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2017_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2017_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeHotel_NECB2017_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_LargeHotel_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'LargeHotel',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeHotel-NECB2017-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_LargeHotel_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'LargeHotel', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeHotel-NECB2017-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2017_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2017_NaturalGasHPGasBackup.rb index 18e4b5596a..01f34a1a29 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2017_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2017_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeHotel_NECB2017_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_LargeHotel_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'LargeHotel',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeHotel-NECB2017-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_LargeHotel_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'LargeHotel', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeHotel-NECB2017-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2020_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2020_Electricity.rb index 2d375be4cf..d1736a3d46 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2020_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2020_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeHotel_NECB2020_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_LargeHotel_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'LargeHotel',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeHotel-NECB2020-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_LargeHotel_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'LargeHotel', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeHotel-NECB2020-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2020_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2020_ElectricityHPElecBackup.rb index 6705276cdf..f21d5043b1 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2020_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2020_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeHotel_NECB2020_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_LargeHotel_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'LargeHotel',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeHotel-NECB2020-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_LargeHotel_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'LargeHotel', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeHotel-NECB2020-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2020_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2020_ElectricityHPGasBackupMixed.rb index c52627e7d2..2a25fe5cdb 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2020_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2020_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeHotel_NECB2020_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_LargeHotel_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'LargeHotel',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeHotel-NECB2020-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_LargeHotel_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'LargeHotel', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeHotel-NECB2020-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2020_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2020_NaturalGas.rb index 8d017fb6bc..5479f520eb 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2020_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2020_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeHotel_NECB2020_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_LargeHotel_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'LargeHotel',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeHotel-NECB2020-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_LargeHotel_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'LargeHotel', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeHotel-NECB2020-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2020_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2020_NaturalGasHPElecBackupMixed.rb index 553aab9698..e038ea62d5 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2020_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2020_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeHotel_NECB2020_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_LargeHotel_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'LargeHotel',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeHotel-NECB2020-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_LargeHotel_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'LargeHotel', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeHotel-NECB2020-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2020_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2020_NaturalGasHPGasBackup.rb index 0c328a5bcc..44ed6437c5 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2020_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeHotel_NECB2020_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeHotel_NECB2020_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_LargeHotel_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'LargeHotel',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeHotel-NECB2020-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_LargeHotel_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'LargeHotel', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeHotel-NECB2020-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAP1980TO2010_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAP1980TO2010_Electricity.rb index 41f7cc11d1..63d73ddf2f 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAP1980TO2010_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAP1980TO2010_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeOffice_BTAP1980TO2010_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_LargeOffice_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'LargeOffice',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeOffice-BTAP1980TO2010-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_LargeOffice_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'LargeOffice', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeOffice-BTAP1980TO2010-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAP1980TO2010_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAP1980TO2010_ElectricityHPElecBackup.rb index 828a4ad011..d2ac9f8336 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAP1980TO2010_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAP1980TO2010_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeOffice_BTAP1980TO2010_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_LargeOffice_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'LargeOffice',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeOffice-BTAP1980TO2010-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_LargeOffice_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'LargeOffice', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeOffice-BTAP1980TO2010-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb index 431fd01026..2edf4bf1c4 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeOffice_BTAP1980TO2010_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_LargeOffice_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'LargeOffice',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeOffice-BTAP1980TO2010-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_LargeOffice_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'LargeOffice', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeOffice-BTAP1980TO2010-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAP1980TO2010_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAP1980TO2010_NaturalGas.rb index af1576d271..00224fd4a5 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAP1980TO2010_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAP1980TO2010_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeOffice_BTAP1980TO2010_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_LargeOffice_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'LargeOffice',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeOffice-BTAP1980TO2010-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_LargeOffice_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'LargeOffice', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeOffice-BTAP1980TO2010-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb index 93b8e009dd..af4038f8aa 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeOffice_BTAP1980TO2010_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_LargeOffice_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'LargeOffice',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeOffice-BTAP1980TO2010-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_LargeOffice_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'LargeOffice', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeOffice-BTAP1980TO2010-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAP1980TO2010_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAP1980TO2010_NaturalGasHPGasBackup.rb index 1e0aa7403a..30291200f6 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAP1980TO2010_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAP1980TO2010_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeOffice_BTAP1980TO2010_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_LargeOffice_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'LargeOffice',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeOffice-BTAP1980TO2010-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_LargeOffice_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'LargeOffice', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeOffice-BTAP1980TO2010-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAPPRE1980_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAPPRE1980_Electricity.rb index 456846bfd8..6dcb527cbb 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAPPRE1980_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAPPRE1980_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeOffice_BTAPPRE1980_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_LargeOffice_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'LargeOffice',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeOffice-BTAPPRE1980-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_LargeOffice_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'LargeOffice', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeOffice-BTAPPRE1980-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAPPRE1980_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAPPRE1980_ElectricityHPElecBackup.rb index e82302ffa1..5e1092f476 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAPPRE1980_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAPPRE1980_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeOffice_BTAPPRE1980_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_LargeOffice_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'LargeOffice',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeOffice-BTAPPRE1980-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_LargeOffice_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'LargeOffice', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeOffice-BTAPPRE1980-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAPPRE1980_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAPPRE1980_ElectricityHPGasBackupMixed.rb index 62ef19f80a..bf92ff97ae 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAPPRE1980_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAPPRE1980_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeOffice_BTAPPRE1980_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_LargeOffice_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'LargeOffice',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeOffice-BTAPPRE1980-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_LargeOffice_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'LargeOffice', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeOffice-BTAPPRE1980-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAPPRE1980_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAPPRE1980_NaturalGas.rb index 19e79ccc46..1dc0dc446e 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAPPRE1980_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAPPRE1980_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeOffice_BTAPPRE1980_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_LargeOffice_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'LargeOffice',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeOffice-BTAPPRE1980-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_LargeOffice_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'LargeOffice', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeOffice-BTAPPRE1980-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb index 2dd9b33a0b..8307f9e8c4 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeOffice_BTAPPRE1980_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_LargeOffice_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'LargeOffice',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeOffice-BTAPPRE1980-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_LargeOffice_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'LargeOffice', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeOffice-BTAPPRE1980-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAPPRE1980_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAPPRE1980_NaturalGasHPGasBackup.rb index 56f80d2af4..9c8b891e49 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAPPRE1980_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_BTAPPRE1980_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeOffice_BTAPPRE1980_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_LargeOffice_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'LargeOffice',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeOffice-BTAPPRE1980-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_LargeOffice_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'LargeOffice', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeOffice-BTAPPRE1980-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2011_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2011_Electricity.rb index aff1fe463e..aebaa103bf 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2011_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2011_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeOffice_NECB2011_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_LargeOffice_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'LargeOffice',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeOffice-NECB2011-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_LargeOffice_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'LargeOffice', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeOffice-NECB2011-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2011_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2011_ElectricityHPElecBackup.rb index 15d1bf9260..70fa67ec41 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2011_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2011_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeOffice_NECB2011_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_LargeOffice_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'LargeOffice',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeOffice-NECB2011-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_LargeOffice_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'LargeOffice', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeOffice-NECB2011-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2011_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2011_ElectricityHPGasBackupMixed.rb index 2408cb7187..c938e2c236 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2011_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2011_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeOffice_NECB2011_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_LargeOffice_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'LargeOffice',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeOffice-NECB2011-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_LargeOffice_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'LargeOffice', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeOffice-NECB2011-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2011_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2011_NaturalGas.rb index 0afa585b1f..3ad4a6347c 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2011_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2011_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeOffice_NECB2011_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_LargeOffice_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'LargeOffice',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeOffice-NECB2011-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_LargeOffice_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'LargeOffice', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeOffice-NECB2011-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2011_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2011_NaturalGasHPElecBackupMixed.rb index 7b25852182..7ae958c9f6 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2011_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2011_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeOffice_NECB2011_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_LargeOffice_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'LargeOffice',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeOffice-NECB2011-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_LargeOffice_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'LargeOffice', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeOffice-NECB2011-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2011_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2011_NaturalGasHPGasBackup.rb index 254e2a2978..bf7f9c01ce 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2011_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2011_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeOffice_NECB2011_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_LargeOffice_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'LargeOffice',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeOffice-NECB2011-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_LargeOffice_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'LargeOffice', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeOffice-NECB2011-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2015_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2015_Electricity.rb index 23978842f2..8da8e42c66 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2015_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2015_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeOffice_NECB2015_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_LargeOffice_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'LargeOffice',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeOffice-NECB2015-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_LargeOffice_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'LargeOffice', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeOffice-NECB2015-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2015_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2015_ElectricityHPElecBackup.rb index 11b11cb1c3..a4b762ebcd 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2015_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2015_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeOffice_NECB2015_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_LargeOffice_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'LargeOffice',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeOffice-NECB2015-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_LargeOffice_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'LargeOffice', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeOffice-NECB2015-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2015_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2015_ElectricityHPGasBackupMixed.rb index fbb6893b13..0f8233cbf4 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2015_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2015_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeOffice_NECB2015_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_LargeOffice_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'LargeOffice',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeOffice-NECB2015-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_LargeOffice_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'LargeOffice', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeOffice-NECB2015-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2015_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2015_NaturalGas.rb index cc16f0df7b..42c134fddb 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2015_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2015_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeOffice_NECB2015_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_LargeOffice_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'LargeOffice',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeOffice-NECB2015-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_LargeOffice_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'LargeOffice', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeOffice-NECB2015-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2015_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2015_NaturalGasHPElecBackupMixed.rb index 0a6e2073bb..8eba635917 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2015_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2015_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeOffice_NECB2015_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_LargeOffice_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'LargeOffice',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeOffice-NECB2015-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_LargeOffice_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'LargeOffice', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeOffice-NECB2015-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2015_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2015_NaturalGasHPGasBackup.rb index 546eb5f979..bcedf8948e 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2015_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2015_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeOffice_NECB2015_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_LargeOffice_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'LargeOffice',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeOffice-NECB2015-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_LargeOffice_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'LargeOffice', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeOffice-NECB2015-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2017_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2017_Electricity.rb index f1896eea82..e36f867c29 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2017_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2017_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeOffice_NECB2017_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_LargeOffice_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'LargeOffice',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeOffice-NECB2017-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_LargeOffice_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'LargeOffice', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeOffice-NECB2017-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2017_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2017_ElectricityHPElecBackup.rb index 2c036ee6b1..69985d7fc3 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2017_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2017_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeOffice_NECB2017_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_LargeOffice_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'LargeOffice',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeOffice-NECB2017-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_LargeOffice_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'LargeOffice', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeOffice-NECB2017-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2017_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2017_ElectricityHPGasBackupMixed.rb index f3f497b5de..cae20226a2 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2017_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2017_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeOffice_NECB2017_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_LargeOffice_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'LargeOffice',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeOffice-NECB2017-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_LargeOffice_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'LargeOffice', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeOffice-NECB2017-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2017_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2017_NaturalGas.rb index 5efc1455fe..0dd31516af 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2017_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2017_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeOffice_NECB2017_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_LargeOffice_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'LargeOffice',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeOffice-NECB2017-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_LargeOffice_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'LargeOffice', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeOffice-NECB2017-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2017_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2017_NaturalGasHPElecBackupMixed.rb index e6c0d74a3f..f9e3953598 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2017_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2017_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeOffice_NECB2017_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_LargeOffice_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'LargeOffice',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeOffice-NECB2017-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_LargeOffice_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'LargeOffice', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeOffice-NECB2017-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2017_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2017_NaturalGasHPGasBackup.rb index af4028f532..9b57d737f3 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2017_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2017_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeOffice_NECB2017_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_LargeOffice_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'LargeOffice',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeOffice-NECB2017-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_LargeOffice_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'LargeOffice', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeOffice-NECB2017-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2020_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2020_Electricity.rb index 36dbf6dde2..d1768f5c65 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2020_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2020_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeOffice_NECB2020_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_LargeOffice_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'LargeOffice',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeOffice-NECB2020-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_LargeOffice_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'LargeOffice', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeOffice-NECB2020-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2020_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2020_ElectricityHPElecBackup.rb index 77572d5b45..61d84004ce 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2020_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2020_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeOffice_NECB2020_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_LargeOffice_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'LargeOffice',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeOffice-NECB2020-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_LargeOffice_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'LargeOffice', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeOffice-NECB2020-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2020_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2020_ElectricityHPGasBackupMixed.rb index 50bed4e96d..f63ed30476 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2020_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2020_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeOffice_NECB2020_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_LargeOffice_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'LargeOffice',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeOffice-NECB2020-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_LargeOffice_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'LargeOffice', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeOffice-NECB2020-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2020_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2020_NaturalGas.rb index a45c07ea9c..741aff77cf 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2020_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2020_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeOffice_NECB2020_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_LargeOffice_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'LargeOffice',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeOffice-NECB2020-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_LargeOffice_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'LargeOffice', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeOffice-NECB2020-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2020_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2020_NaturalGasHPElecBackupMixed.rb index 29c9fbc951..485584477b 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2020_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2020_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeOffice_NECB2020_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_LargeOffice_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'LargeOffice',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeOffice-NECB2020-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_LargeOffice_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'LargeOffice', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeOffice-NECB2020-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2020_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2020_NaturalGasHPGasBackup.rb index 90fc99be54..4621f3b62e 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2020_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LargeOffice_NECB2020_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LargeOffice_NECB2020_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_LargeOffice_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'LargeOffice',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LargeOffice-NECB2020-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_LargeOffice_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'LargeOffice', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LargeOffice-NECB2020-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAP1980TO2010_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAP1980TO2010_Electricity.rb index 70a1454137..db95479404 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAP1980TO2010_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAP1980TO2010_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LowriseApartment_BTAP1980TO2010_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_LowriseApartment_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'LowriseApartment',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LowriseApartment-BTAP1980TO2010-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_LowriseApartment_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'LowriseApartment', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LowriseApartment-BTAP1980TO2010-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAP1980TO2010_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAP1980TO2010_ElectricityHPElecBackup.rb index c44c983547..6b228a2c6e 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAP1980TO2010_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAP1980TO2010_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LowriseApartment_BTAP1980TO2010_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_LowriseApartment_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'LowriseApartment',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LowriseApartment-BTAP1980TO2010-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_LowriseApartment_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'LowriseApartment', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LowriseApartment-BTAP1980TO2010-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb index c80449ea40..87cb955fd2 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LowriseApartment_BTAP1980TO2010_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_LowriseApartment_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'LowriseApartment',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LowriseApartment-BTAP1980TO2010-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_LowriseApartment_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'LowriseApartment', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LowriseApartment-BTAP1980TO2010-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAP1980TO2010_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAP1980TO2010_NaturalGas.rb index dfca2fac47..40ddaf3f44 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAP1980TO2010_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAP1980TO2010_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LowriseApartment_BTAP1980TO2010_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_LowriseApartment_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'LowriseApartment',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LowriseApartment-BTAP1980TO2010-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_LowriseApartment_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'LowriseApartment', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LowriseApartment-BTAP1980TO2010-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb index f948758e5f..9d68c9aabc 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LowriseApartment_BTAP1980TO2010_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_LowriseApartment_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'LowriseApartment',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LowriseApartment-BTAP1980TO2010-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_LowriseApartment_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'LowriseApartment', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LowriseApartment-BTAP1980TO2010-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAP1980TO2010_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAP1980TO2010_NaturalGasHPGasBackup.rb index 854a126182..200d886bac 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAP1980TO2010_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAP1980TO2010_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LowriseApartment_BTAP1980TO2010_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_LowriseApartment_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'LowriseApartment',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LowriseApartment-BTAP1980TO2010-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_LowriseApartment_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'LowriseApartment', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LowriseApartment-BTAP1980TO2010-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAPPRE1980_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAPPRE1980_Electricity.rb index a088f572b0..00dcf59730 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAPPRE1980_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAPPRE1980_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LowriseApartment_BTAPPRE1980_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_LowriseApartment_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'LowriseApartment',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LowriseApartment-BTAPPRE1980-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_LowriseApartment_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'LowriseApartment', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LowriseApartment-BTAPPRE1980-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAPPRE1980_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAPPRE1980_ElectricityHPElecBackup.rb index 31eed1e8d2..7953f1cbaf 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAPPRE1980_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAPPRE1980_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LowriseApartment_BTAPPRE1980_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_LowriseApartment_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'LowriseApartment',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LowriseApartment-BTAPPRE1980-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_LowriseApartment_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'LowriseApartment', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LowriseApartment-BTAPPRE1980-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAPPRE1980_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAPPRE1980_ElectricityHPGasBackupMixed.rb index 6547329b5b..9bad43cba8 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAPPRE1980_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAPPRE1980_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LowriseApartment_BTAPPRE1980_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_LowriseApartment_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'LowriseApartment',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LowriseApartment-BTAPPRE1980-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_LowriseApartment_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'LowriseApartment', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LowriseApartment-BTAPPRE1980-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAPPRE1980_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAPPRE1980_NaturalGas.rb index e9ba7ef9f6..2d3c27c873 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAPPRE1980_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAPPRE1980_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LowriseApartment_BTAPPRE1980_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_LowriseApartment_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'LowriseApartment',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LowriseApartment-BTAPPRE1980-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_LowriseApartment_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'LowriseApartment', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LowriseApartment-BTAPPRE1980-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb index a0bc2a5903..18cd917f9e 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LowriseApartment_BTAPPRE1980_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_LowriseApartment_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'LowriseApartment',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LowriseApartment-BTAPPRE1980-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_LowriseApartment_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'LowriseApartment', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LowriseApartment-BTAPPRE1980-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAPPRE1980_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAPPRE1980_NaturalGasHPGasBackup.rb index 46614c941d..0e96a13246 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAPPRE1980_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_BTAPPRE1980_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LowriseApartment_BTAPPRE1980_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_LowriseApartment_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'LowriseApartment',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LowriseApartment-BTAPPRE1980-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_LowriseApartment_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'LowriseApartment', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LowriseApartment-BTAPPRE1980-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2011_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2011_Electricity.rb index 1db73a9fe3..5774302943 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2011_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2011_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LowriseApartment_NECB2011_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_LowriseApartment_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'LowriseApartment',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LowriseApartment-NECB2011-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_LowriseApartment_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'LowriseApartment', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LowriseApartment-NECB2011-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2011_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2011_ElectricityHPElecBackup.rb index 7c29df7f37..204ae60a06 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2011_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2011_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LowriseApartment_NECB2011_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_LowriseApartment_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'LowriseApartment',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LowriseApartment-NECB2011-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_LowriseApartment_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'LowriseApartment', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LowriseApartment-NECB2011-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2011_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2011_ElectricityHPGasBackupMixed.rb index 92d5d007fd..24dc23874f 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2011_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2011_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LowriseApartment_NECB2011_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_LowriseApartment_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'LowriseApartment',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LowriseApartment-NECB2011-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_LowriseApartment_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'LowriseApartment', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LowriseApartment-NECB2011-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2011_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2011_NaturalGas.rb index 9189b80b02..747b3298c9 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2011_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2011_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LowriseApartment_NECB2011_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_LowriseApartment_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'LowriseApartment',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LowriseApartment-NECB2011-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_LowriseApartment_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'LowriseApartment', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LowriseApartment-NECB2011-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2011_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2011_NaturalGasHPElecBackupMixed.rb index d3059c54bc..dc8cf5c1de 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2011_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2011_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LowriseApartment_NECB2011_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_LowriseApartment_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'LowriseApartment',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LowriseApartment-NECB2011-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_LowriseApartment_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'LowriseApartment', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LowriseApartment-NECB2011-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2011_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2011_NaturalGasHPGasBackup.rb index 3c5133efc1..5276ad0192 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2011_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2011_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LowriseApartment_NECB2011_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_LowriseApartment_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'LowriseApartment',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LowriseApartment-NECB2011-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_LowriseApartment_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'LowriseApartment', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LowriseApartment-NECB2011-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2015_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2015_Electricity.rb index 5045314c0c..3f867d662e 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2015_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2015_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LowriseApartment_NECB2015_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_LowriseApartment_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'LowriseApartment',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LowriseApartment-NECB2015-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_LowriseApartment_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'LowriseApartment', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LowriseApartment-NECB2015-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2015_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2015_ElectricityHPElecBackup.rb index 72425475e2..622e0cf75c 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2015_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2015_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LowriseApartment_NECB2015_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_LowriseApartment_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'LowriseApartment',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LowriseApartment-NECB2015-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_LowriseApartment_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'LowriseApartment', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LowriseApartment-NECB2015-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2015_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2015_ElectricityHPGasBackupMixed.rb index 748d7f4202..fa742fb839 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2015_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2015_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LowriseApartment_NECB2015_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_LowriseApartment_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'LowriseApartment',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LowriseApartment-NECB2015-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_LowriseApartment_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'LowriseApartment', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LowriseApartment-NECB2015-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2015_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2015_NaturalGas.rb index 206db4c858..327eb22cac 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2015_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2015_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LowriseApartment_NECB2015_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_LowriseApartment_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'LowriseApartment',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LowriseApartment-NECB2015-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_LowriseApartment_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'LowriseApartment', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LowriseApartment-NECB2015-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2015_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2015_NaturalGasHPElecBackupMixed.rb index a1cf20f4b6..3a77e1e922 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2015_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2015_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LowriseApartment_NECB2015_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_LowriseApartment_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'LowriseApartment',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LowriseApartment-NECB2015-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_LowriseApartment_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'LowriseApartment', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LowriseApartment-NECB2015-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2015_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2015_NaturalGasHPGasBackup.rb index 75446807b0..58055b1aaa 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2015_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2015_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LowriseApartment_NECB2015_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_LowriseApartment_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'LowriseApartment',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LowriseApartment-NECB2015-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_LowriseApartment_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'LowriseApartment', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LowriseApartment-NECB2015-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2017_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2017_Electricity.rb index 7729c6dd26..b318cfabe7 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2017_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2017_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LowriseApartment_NECB2017_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_LowriseApartment_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'LowriseApartment',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LowriseApartment-NECB2017-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_LowriseApartment_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'LowriseApartment', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LowriseApartment-NECB2017-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2017_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2017_ElectricityHPElecBackup.rb index 52f189f94f..caace8b89d 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2017_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2017_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LowriseApartment_NECB2017_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_LowriseApartment_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'LowriseApartment',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LowriseApartment-NECB2017-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_LowriseApartment_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'LowriseApartment', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LowriseApartment-NECB2017-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2017_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2017_ElectricityHPGasBackupMixed.rb index f1b1b46b09..517302892b 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2017_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2017_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LowriseApartment_NECB2017_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_LowriseApartment_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'LowriseApartment',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LowriseApartment-NECB2017-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_LowriseApartment_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'LowriseApartment', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LowriseApartment-NECB2017-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2017_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2017_NaturalGas.rb index e15438a390..371f095c71 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2017_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2017_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LowriseApartment_NECB2017_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_LowriseApartment_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'LowriseApartment',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LowriseApartment-NECB2017-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_LowriseApartment_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'LowriseApartment', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LowriseApartment-NECB2017-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2017_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2017_NaturalGasHPElecBackupMixed.rb index de8691b8d3..3212f73da8 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2017_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2017_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LowriseApartment_NECB2017_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_LowriseApartment_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'LowriseApartment',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LowriseApartment-NECB2017-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_LowriseApartment_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'LowriseApartment', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LowriseApartment-NECB2017-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2017_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2017_NaturalGasHPGasBackup.rb index ae7df09f2d..f074a23098 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2017_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2017_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LowriseApartment_NECB2017_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_LowriseApartment_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'LowriseApartment',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LowriseApartment-NECB2017-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_LowriseApartment_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'LowriseApartment', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LowriseApartment-NECB2017-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2020_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2020_Electricity.rb index 2c0e559a7c..526fbed60c 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2020_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2020_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LowriseApartment_NECB2020_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_LowriseApartment_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'LowriseApartment',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LowriseApartment-NECB2020-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_LowriseApartment_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'LowriseApartment', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LowriseApartment-NECB2020-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2020_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2020_ElectricityHPElecBackup.rb index 1dd8e2bb17..331b2f5dca 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2020_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2020_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LowriseApartment_NECB2020_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_LowriseApartment_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'LowriseApartment',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LowriseApartment-NECB2020-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_LowriseApartment_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'LowriseApartment', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LowriseApartment-NECB2020-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2020_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2020_ElectricityHPGasBackupMixed.rb index beea6cfbe8..c4d93f8fa5 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2020_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2020_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LowriseApartment_NECB2020_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_LowriseApartment_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'LowriseApartment',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LowriseApartment-NECB2020-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_LowriseApartment_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'LowriseApartment', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LowriseApartment-NECB2020-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2020_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2020_NaturalGas.rb index 9787fd3cc0..d91e1cc384 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2020_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2020_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LowriseApartment_NECB2020_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_LowriseApartment_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'LowriseApartment',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LowriseApartment-NECB2020-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_LowriseApartment_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'LowriseApartment', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LowriseApartment-NECB2020-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2020_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2020_NaturalGasHPElecBackupMixed.rb index 6af98cdb12..cbc4634686 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2020_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2020_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LowriseApartment_NECB2020_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_LowriseApartment_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'LowriseApartment',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LowriseApartment-NECB2020-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_LowriseApartment_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'LowriseApartment', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LowriseApartment-NECB2020-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2020_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2020_NaturalGasHPGasBackup.rb index 4ba07970e2..f518466e6d 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2020_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_LowriseApartment_NECB2020_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_LowriseApartment_NECB2020_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_LowriseApartment_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'LowriseApartment',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/LowriseApartment-NECB2020-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_LowriseApartment_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'LowriseApartment', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/LowriseApartment-NECB2020-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAP1980TO2010_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAP1980TO2010_Electricity.rb index 0c00798fc6..5236f74487 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAP1980TO2010_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAP1980TO2010_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MediumOffice_BTAP1980TO2010_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_MediumOffice_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'MediumOffice',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MediumOffice-BTAP1980TO2010-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_MediumOffice_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'MediumOffice', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MediumOffice-BTAP1980TO2010-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAP1980TO2010_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAP1980TO2010_ElectricityHPElecBackup.rb index 4037ab5f2f..413597717f 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAP1980TO2010_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAP1980TO2010_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MediumOffice_BTAP1980TO2010_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_MediumOffice_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'MediumOffice',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MediumOffice-BTAP1980TO2010-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_MediumOffice_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'MediumOffice', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MediumOffice-BTAP1980TO2010-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb index 5f3708c934..13a8402bce 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MediumOffice_BTAP1980TO2010_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_MediumOffice_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'MediumOffice',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MediumOffice-BTAP1980TO2010-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_MediumOffice_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'MediumOffice', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MediumOffice-BTAP1980TO2010-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAP1980TO2010_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAP1980TO2010_NaturalGas.rb index a9f5ce9a38..64c82511a4 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAP1980TO2010_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAP1980TO2010_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MediumOffice_BTAP1980TO2010_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_MediumOffice_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'MediumOffice',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MediumOffice-BTAP1980TO2010-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_MediumOffice_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'MediumOffice', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MediumOffice-BTAP1980TO2010-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb index 93c455dff2..3e49a14bb4 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MediumOffice_BTAP1980TO2010_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_MediumOffice_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'MediumOffice',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MediumOffice-BTAP1980TO2010-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_MediumOffice_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'MediumOffice', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MediumOffice-BTAP1980TO2010-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAP1980TO2010_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAP1980TO2010_NaturalGasHPGasBackup.rb index 19f1aca9c1..331365320b 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAP1980TO2010_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAP1980TO2010_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MediumOffice_BTAP1980TO2010_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_MediumOffice_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'MediumOffice',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MediumOffice-BTAP1980TO2010-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_MediumOffice_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'MediumOffice', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MediumOffice-BTAP1980TO2010-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAPPRE1980_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAPPRE1980_Electricity.rb index ac49a21e81..13e61e6500 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAPPRE1980_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAPPRE1980_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MediumOffice_BTAPPRE1980_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_MediumOffice_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'MediumOffice',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MediumOffice-BTAPPRE1980-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_MediumOffice_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'MediumOffice', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MediumOffice-BTAPPRE1980-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAPPRE1980_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAPPRE1980_ElectricityHPElecBackup.rb index 6f97007986..61358f85f5 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAPPRE1980_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAPPRE1980_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MediumOffice_BTAPPRE1980_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_MediumOffice_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'MediumOffice',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MediumOffice-BTAPPRE1980-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_MediumOffice_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'MediumOffice', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MediumOffice-BTAPPRE1980-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAPPRE1980_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAPPRE1980_ElectricityHPGasBackupMixed.rb index 73f9349dab..7d377ab33a 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAPPRE1980_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAPPRE1980_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MediumOffice_BTAPPRE1980_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_MediumOffice_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'MediumOffice',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MediumOffice-BTAPPRE1980-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_MediumOffice_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'MediumOffice', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MediumOffice-BTAPPRE1980-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAPPRE1980_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAPPRE1980_NaturalGas.rb index a3b7ef357c..33d8b010d2 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAPPRE1980_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAPPRE1980_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MediumOffice_BTAPPRE1980_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_MediumOffice_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'MediumOffice',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MediumOffice-BTAPPRE1980-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_MediumOffice_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'MediumOffice', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MediumOffice-BTAPPRE1980-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb index 2bf5ab20ec..df98ad7c3d 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MediumOffice_BTAPPRE1980_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_MediumOffice_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'MediumOffice',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MediumOffice-BTAPPRE1980-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_MediumOffice_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'MediumOffice', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MediumOffice-BTAPPRE1980-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAPPRE1980_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAPPRE1980_NaturalGasHPGasBackup.rb index 4d145ded52..47e9b824ce 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAPPRE1980_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_BTAPPRE1980_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MediumOffice_BTAPPRE1980_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_MediumOffice_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'MediumOffice',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MediumOffice-BTAPPRE1980-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_MediumOffice_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'MediumOffice', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MediumOffice-BTAPPRE1980-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2011_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2011_Electricity.rb index b129563454..904b3c889f 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2011_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2011_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MediumOffice_NECB2011_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_MediumOffice_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'MediumOffice',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MediumOffice-NECB2011-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_MediumOffice_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'MediumOffice', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MediumOffice-NECB2011-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2011_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2011_ElectricityHPElecBackup.rb index e047381257..83316c0bff 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2011_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2011_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MediumOffice_NECB2011_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_MediumOffice_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'MediumOffice',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MediumOffice-NECB2011-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_MediumOffice_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'MediumOffice', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MediumOffice-NECB2011-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2011_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2011_ElectricityHPGasBackupMixed.rb index 955903685f..967376d4e7 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2011_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2011_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MediumOffice_NECB2011_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_MediumOffice_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'MediumOffice',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MediumOffice-NECB2011-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_MediumOffice_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'MediumOffice', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MediumOffice-NECB2011-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2011_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2011_NaturalGas.rb index f19426aae2..50d42290b4 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2011_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2011_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MediumOffice_NECB2011_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_MediumOffice_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'MediumOffice',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MediumOffice-NECB2011-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_MediumOffice_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'MediumOffice', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MediumOffice-NECB2011-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2011_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2011_NaturalGasHPElecBackupMixed.rb index a5b7691eb4..5dc02babe3 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2011_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2011_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MediumOffice_NECB2011_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_MediumOffice_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'MediumOffice',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MediumOffice-NECB2011-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_MediumOffice_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'MediumOffice', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MediumOffice-NECB2011-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2011_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2011_NaturalGasHPGasBackup.rb index 58da1d919f..9510ffc51a 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2011_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2011_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MediumOffice_NECB2011_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_MediumOffice_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'MediumOffice',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MediumOffice-NECB2011-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_MediumOffice_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'MediumOffice', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MediumOffice-NECB2011-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2015_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2015_Electricity.rb index 6a795c6d03..b9c2094408 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2015_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2015_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MediumOffice_NECB2015_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_MediumOffice_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'MediumOffice',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MediumOffice-NECB2015-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_MediumOffice_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'MediumOffice', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MediumOffice-NECB2015-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2015_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2015_ElectricityHPElecBackup.rb index a325858dc2..062f006a24 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2015_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2015_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MediumOffice_NECB2015_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_MediumOffice_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'MediumOffice',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MediumOffice-NECB2015-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_MediumOffice_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'MediumOffice', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MediumOffice-NECB2015-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2015_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2015_ElectricityHPGasBackupMixed.rb index 3b4e72738a..a05453fad4 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2015_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2015_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MediumOffice_NECB2015_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_MediumOffice_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'MediumOffice',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MediumOffice-NECB2015-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_MediumOffice_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'MediumOffice', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MediumOffice-NECB2015-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2015_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2015_NaturalGas.rb index 5fe67bab29..844772c39f 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2015_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2015_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MediumOffice_NECB2015_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_MediumOffice_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'MediumOffice',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MediumOffice-NECB2015-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_MediumOffice_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'MediumOffice', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MediumOffice-NECB2015-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2015_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2015_NaturalGasHPElecBackupMixed.rb index f8c45a9f39..192de99f69 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2015_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2015_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MediumOffice_NECB2015_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_MediumOffice_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'MediumOffice',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MediumOffice-NECB2015-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_MediumOffice_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'MediumOffice', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MediumOffice-NECB2015-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2015_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2015_NaturalGasHPGasBackup.rb index 256a9336a6..1762856099 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2015_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2015_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MediumOffice_NECB2015_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_MediumOffice_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'MediumOffice',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MediumOffice-NECB2015-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_MediumOffice_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'MediumOffice', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MediumOffice-NECB2015-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2017_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2017_Electricity.rb index b26ec53cfb..a49baa672f 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2017_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2017_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MediumOffice_NECB2017_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_MediumOffice_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'MediumOffice',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MediumOffice-NECB2017-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_MediumOffice_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'MediumOffice', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MediumOffice-NECB2017-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2017_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2017_ElectricityHPElecBackup.rb index bce3d6e559..d1d3c3e2f8 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2017_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2017_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MediumOffice_NECB2017_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_MediumOffice_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'MediumOffice',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MediumOffice-NECB2017-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_MediumOffice_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'MediumOffice', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MediumOffice-NECB2017-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2017_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2017_ElectricityHPGasBackupMixed.rb index a4ce8171eb..4b886e3cfa 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2017_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2017_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MediumOffice_NECB2017_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_MediumOffice_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'MediumOffice',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MediumOffice-NECB2017-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_MediumOffice_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'MediumOffice', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MediumOffice-NECB2017-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2017_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2017_NaturalGas.rb index e1342b2fb0..7cbe781a97 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2017_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2017_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MediumOffice_NECB2017_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_MediumOffice_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'MediumOffice',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MediumOffice-NECB2017-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_MediumOffice_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'MediumOffice', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MediumOffice-NECB2017-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2017_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2017_NaturalGasHPElecBackupMixed.rb index 3c0f3adb87..8a963755c8 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2017_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2017_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MediumOffice_NECB2017_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_MediumOffice_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'MediumOffice',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MediumOffice-NECB2017-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_MediumOffice_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'MediumOffice', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MediumOffice-NECB2017-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2017_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2017_NaturalGasHPGasBackup.rb index c244ad5cfb..a9b329c0da 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2017_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2017_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MediumOffice_NECB2017_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_MediumOffice_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'MediumOffice',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MediumOffice-NECB2017-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_MediumOffice_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'MediumOffice', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MediumOffice-NECB2017-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2020_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2020_Electricity.rb index 9c344833e5..5b8f96f007 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2020_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2020_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MediumOffice_NECB2020_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_MediumOffice_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'MediumOffice',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MediumOffice-NECB2020-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_MediumOffice_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'MediumOffice', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MediumOffice-NECB2020-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2020_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2020_ElectricityHPElecBackup.rb index 81af2e337b..9a1b79049d 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2020_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2020_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MediumOffice_NECB2020_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_MediumOffice_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'MediumOffice',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MediumOffice-NECB2020-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_MediumOffice_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'MediumOffice', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MediumOffice-NECB2020-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2020_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2020_ElectricityHPGasBackupMixed.rb index 24a089476a..606a8fae96 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2020_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2020_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MediumOffice_NECB2020_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_MediumOffice_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'MediumOffice',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MediumOffice-NECB2020-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_MediumOffice_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'MediumOffice', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MediumOffice-NECB2020-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2020_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2020_NaturalGas.rb index 1d86ff9d09..d0dc3ccad5 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2020_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2020_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MediumOffice_NECB2020_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_MediumOffice_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'MediumOffice',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MediumOffice-NECB2020-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_MediumOffice_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'MediumOffice', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MediumOffice-NECB2020-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2020_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2020_NaturalGasHPElecBackupMixed.rb index 51476a316f..cbf38e1ca3 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2020_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2020_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MediumOffice_NECB2020_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_MediumOffice_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'MediumOffice',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MediumOffice-NECB2020-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_MediumOffice_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'MediumOffice', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MediumOffice-NECB2020-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2020_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2020_NaturalGasHPGasBackup.rb index a767f03675..1c944f9480 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2020_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MediumOffice_NECB2020_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MediumOffice_NECB2020_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_MediumOffice_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'MediumOffice',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MediumOffice-NECB2020-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_MediumOffice_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'MediumOffice', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MediumOffice-NECB2020-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAP1980TO2010_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAP1980TO2010_Electricity.rb index 53c23d6c5c..e3b1e911da 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAP1980TO2010_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAP1980TO2010_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MidriseApartment_BTAP1980TO2010_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_MidriseApartment_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'MidriseApartment',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MidriseApartment-BTAP1980TO2010-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_MidriseApartment_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'MidriseApartment', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MidriseApartment-BTAP1980TO2010-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAP1980TO2010_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAP1980TO2010_ElectricityHPElecBackup.rb index 676f4f2d6c..887aa47fa3 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAP1980TO2010_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAP1980TO2010_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MidriseApartment_BTAP1980TO2010_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_MidriseApartment_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'MidriseApartment',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MidriseApartment-BTAP1980TO2010-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_MidriseApartment_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'MidriseApartment', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MidriseApartment-BTAP1980TO2010-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb index 77bb98ea1a..e55e6f3876 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MidriseApartment_BTAP1980TO2010_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_MidriseApartment_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'MidriseApartment',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MidriseApartment-BTAP1980TO2010-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_MidriseApartment_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'MidriseApartment', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MidriseApartment-BTAP1980TO2010-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAP1980TO2010_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAP1980TO2010_NaturalGas.rb index 53c0d3a109..6f6ab7e1b6 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAP1980TO2010_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAP1980TO2010_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MidriseApartment_BTAP1980TO2010_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_MidriseApartment_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'MidriseApartment',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MidriseApartment-BTAP1980TO2010-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_MidriseApartment_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'MidriseApartment', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MidriseApartment-BTAP1980TO2010-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb index aeaae6c51b..3284c35456 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MidriseApartment_BTAP1980TO2010_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_MidriseApartment_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'MidriseApartment',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MidriseApartment-BTAP1980TO2010-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_MidriseApartment_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'MidriseApartment', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MidriseApartment-BTAP1980TO2010-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAP1980TO2010_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAP1980TO2010_NaturalGasHPGasBackup.rb index 88092b2caa..d33d0e1a74 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAP1980TO2010_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAP1980TO2010_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MidriseApartment_BTAP1980TO2010_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_MidriseApartment_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'MidriseApartment',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MidriseApartment-BTAP1980TO2010-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_MidriseApartment_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'MidriseApartment', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MidriseApartment-BTAP1980TO2010-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAPPRE1980_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAPPRE1980_Electricity.rb index 0cf600fd59..779de00bc0 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAPPRE1980_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAPPRE1980_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MidriseApartment_BTAPPRE1980_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_MidriseApartment_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'MidriseApartment',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MidriseApartment-BTAPPRE1980-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_MidriseApartment_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'MidriseApartment', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MidriseApartment-BTAPPRE1980-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAPPRE1980_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAPPRE1980_ElectricityHPElecBackup.rb index bb25ef4063..f0ed5c898e 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAPPRE1980_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAPPRE1980_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MidriseApartment_BTAPPRE1980_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_MidriseApartment_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'MidriseApartment',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MidriseApartment-BTAPPRE1980-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_MidriseApartment_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'MidriseApartment', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MidriseApartment-BTAPPRE1980-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAPPRE1980_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAPPRE1980_ElectricityHPGasBackupMixed.rb index bb641dbc5f..2326fabd59 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAPPRE1980_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAPPRE1980_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MidriseApartment_BTAPPRE1980_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_MidriseApartment_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'MidriseApartment',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MidriseApartment-BTAPPRE1980-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_MidriseApartment_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'MidriseApartment', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MidriseApartment-BTAPPRE1980-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAPPRE1980_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAPPRE1980_NaturalGas.rb index 27ff71ee0f..28c565a243 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAPPRE1980_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAPPRE1980_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MidriseApartment_BTAPPRE1980_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_MidriseApartment_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'MidriseApartment',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MidriseApartment-BTAPPRE1980-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_MidriseApartment_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'MidriseApartment', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MidriseApartment-BTAPPRE1980-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb index 9fdbc5d91d..48811349e6 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MidriseApartment_BTAPPRE1980_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_MidriseApartment_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'MidriseApartment',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MidriseApartment-BTAPPRE1980-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_MidriseApartment_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'MidriseApartment', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MidriseApartment-BTAPPRE1980-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAPPRE1980_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAPPRE1980_NaturalGasHPGasBackup.rb index 9377004391..b185dfb7c2 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAPPRE1980_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_BTAPPRE1980_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MidriseApartment_BTAPPRE1980_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_MidriseApartment_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'MidriseApartment',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MidriseApartment-BTAPPRE1980-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_MidriseApartment_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'MidriseApartment', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MidriseApartment-BTAPPRE1980-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2011_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2011_Electricity.rb index d09c9335f5..410ff6d5e2 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2011_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2011_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MidriseApartment_NECB2011_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_MidriseApartment_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'MidriseApartment',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MidriseApartment-NECB2011-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_MidriseApartment_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'MidriseApartment', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MidriseApartment-NECB2011-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2011_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2011_ElectricityHPElecBackup.rb index 5338f7ee14..27517ca9ff 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2011_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2011_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MidriseApartment_NECB2011_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_MidriseApartment_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'MidriseApartment',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MidriseApartment-NECB2011-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_MidriseApartment_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'MidriseApartment', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MidriseApartment-NECB2011-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2011_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2011_ElectricityHPGasBackupMixed.rb index 8b79763ca3..302d913f1c 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2011_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2011_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MidriseApartment_NECB2011_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_MidriseApartment_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'MidriseApartment',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MidriseApartment-NECB2011-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_MidriseApartment_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'MidriseApartment', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MidriseApartment-NECB2011-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2011_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2011_NaturalGas.rb index 475d21c4e8..a77ea073e1 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2011_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2011_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MidriseApartment_NECB2011_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_MidriseApartment_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'MidriseApartment',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MidriseApartment-NECB2011-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_MidriseApartment_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'MidriseApartment', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MidriseApartment-NECB2011-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2011_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2011_NaturalGasHPElecBackupMixed.rb index 39550fef09..5380b09cba 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2011_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2011_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MidriseApartment_NECB2011_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_MidriseApartment_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'MidriseApartment',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MidriseApartment-NECB2011-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_MidriseApartment_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'MidriseApartment', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MidriseApartment-NECB2011-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2011_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2011_NaturalGasHPGasBackup.rb index 53bfa0e0ad..9e4f3b96c8 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2011_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2011_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MidriseApartment_NECB2011_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_MidriseApartment_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'MidriseApartment',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MidriseApartment-NECB2011-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_MidriseApartment_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'MidriseApartment', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MidriseApartment-NECB2011-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2015_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2015_Electricity.rb index 929ead2aab..24caf46b3a 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2015_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2015_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MidriseApartment_NECB2015_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_MidriseApartment_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'MidriseApartment',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MidriseApartment-NECB2015-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_MidriseApartment_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'MidriseApartment', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MidriseApartment-NECB2015-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2015_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2015_ElectricityHPElecBackup.rb index 5da32e4a94..47164fde85 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2015_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2015_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MidriseApartment_NECB2015_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_MidriseApartment_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'MidriseApartment',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MidriseApartment-NECB2015-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_MidriseApartment_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'MidriseApartment', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MidriseApartment-NECB2015-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2015_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2015_ElectricityHPGasBackupMixed.rb index 2313f6b73e..35d46b1f15 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2015_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2015_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MidriseApartment_NECB2015_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_MidriseApartment_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'MidriseApartment',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MidriseApartment-NECB2015-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_MidriseApartment_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'MidriseApartment', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MidriseApartment-NECB2015-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2015_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2015_NaturalGas.rb index 8fc3781f14..a0eeb55b68 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2015_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2015_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MidriseApartment_NECB2015_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_MidriseApartment_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'MidriseApartment',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MidriseApartment-NECB2015-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_MidriseApartment_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'MidriseApartment', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MidriseApartment-NECB2015-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2015_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2015_NaturalGasHPElecBackupMixed.rb index d7218c8340..00741c2417 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2015_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2015_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MidriseApartment_NECB2015_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_MidriseApartment_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'MidriseApartment',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MidriseApartment-NECB2015-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_MidriseApartment_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'MidriseApartment', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MidriseApartment-NECB2015-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2015_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2015_NaturalGasHPGasBackup.rb index 95300748b1..e57ee10b52 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2015_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2015_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MidriseApartment_NECB2015_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_MidriseApartment_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'MidriseApartment',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MidriseApartment-NECB2015-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_MidriseApartment_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'MidriseApartment', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MidriseApartment-NECB2015-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2017_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2017_Electricity.rb index 5583632079..977093f1e7 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2017_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2017_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MidriseApartment_NECB2017_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_MidriseApartment_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'MidriseApartment',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MidriseApartment-NECB2017-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_MidriseApartment_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'MidriseApartment', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MidriseApartment-NECB2017-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2017_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2017_ElectricityHPElecBackup.rb index 5ba04600bb..ffd9ee14ce 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2017_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2017_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MidriseApartment_NECB2017_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_MidriseApartment_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'MidriseApartment',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MidriseApartment-NECB2017-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_MidriseApartment_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'MidriseApartment', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MidriseApartment-NECB2017-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2017_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2017_ElectricityHPGasBackupMixed.rb index 5413cde7ac..97c63e1617 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2017_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2017_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MidriseApartment_NECB2017_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_MidriseApartment_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'MidriseApartment',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MidriseApartment-NECB2017-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_MidriseApartment_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'MidriseApartment', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MidriseApartment-NECB2017-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2017_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2017_NaturalGas.rb index a977ad35bd..2cbec43e87 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2017_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2017_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MidriseApartment_NECB2017_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_MidriseApartment_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'MidriseApartment',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MidriseApartment-NECB2017-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_MidriseApartment_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'MidriseApartment', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MidriseApartment-NECB2017-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2017_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2017_NaturalGasHPElecBackupMixed.rb index 19a96c89cc..849120e402 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2017_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2017_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MidriseApartment_NECB2017_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_MidriseApartment_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'MidriseApartment',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MidriseApartment-NECB2017-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_MidriseApartment_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'MidriseApartment', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MidriseApartment-NECB2017-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2017_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2017_NaturalGasHPGasBackup.rb index 304c944f0c..41ef157991 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2017_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2017_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MidriseApartment_NECB2017_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_MidriseApartment_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'MidriseApartment',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MidriseApartment-NECB2017-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_MidriseApartment_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'MidriseApartment', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MidriseApartment-NECB2017-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2020_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2020_Electricity.rb index f1d0b55f0b..32aacd0650 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2020_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2020_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MidriseApartment_NECB2020_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_MidriseApartment_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'MidriseApartment',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MidriseApartment-NECB2020-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_MidriseApartment_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'MidriseApartment', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MidriseApartment-NECB2020-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2020_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2020_ElectricityHPElecBackup.rb index 1bbad73022..06e7effea8 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2020_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2020_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MidriseApartment_NECB2020_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_MidriseApartment_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'MidriseApartment',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MidriseApartment-NECB2020-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_MidriseApartment_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'MidriseApartment', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MidriseApartment-NECB2020-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2020_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2020_ElectricityHPGasBackupMixed.rb index 1877878d14..8ec08fcaba 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2020_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2020_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MidriseApartment_NECB2020_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_MidriseApartment_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'MidriseApartment',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MidriseApartment-NECB2020-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_MidriseApartment_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'MidriseApartment', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MidriseApartment-NECB2020-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2020_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2020_NaturalGas.rb index 4e0c0e2575..4149678e21 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2020_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2020_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MidriseApartment_NECB2020_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_MidriseApartment_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'MidriseApartment',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MidriseApartment-NECB2020-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_MidriseApartment_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'MidriseApartment', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MidriseApartment-NECB2020-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2020_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2020_NaturalGasHPElecBackupMixed.rb index 0571d280e6..1b49db7a2f 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2020_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2020_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MidriseApartment_NECB2020_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_MidriseApartment_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'MidriseApartment',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MidriseApartment-NECB2020-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_MidriseApartment_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'MidriseApartment', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MidriseApartment-NECB2020-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2020_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2020_NaturalGasHPGasBackup.rb index 5a09fce0ca..6fa2c78e47 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2020_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_MidriseApartment_NECB2020_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_MidriseApartment_NECB2020_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_MidriseApartment_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'MidriseApartment',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/MidriseApartment-NECB2020-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_MidriseApartment_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'MidriseApartment', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/MidriseApartment-NECB2020-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAP1980TO2010_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAP1980TO2010_Electricity.rb index eb8e5054d8..28dce3451f 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAP1980TO2010_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAP1980TO2010_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Outpatient_BTAP1980TO2010_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_Outpatient_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'Outpatient',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Outpatient-BTAP1980TO2010-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_Outpatient_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'Outpatient', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Outpatient-BTAP1980TO2010-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAP1980TO2010_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAP1980TO2010_ElectricityHPElecBackup.rb index e459e78fe4..c1e25e70bf 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAP1980TO2010_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAP1980TO2010_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Outpatient_BTAP1980TO2010_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_Outpatient_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'Outpatient',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Outpatient-BTAP1980TO2010-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_Outpatient_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'Outpatient', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Outpatient-BTAP1980TO2010-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb index 3c74b1b408..3f4aab6637 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Outpatient_BTAP1980TO2010_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_Outpatient_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'Outpatient',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Outpatient-BTAP1980TO2010-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_Outpatient_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'Outpatient', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Outpatient-BTAP1980TO2010-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAP1980TO2010_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAP1980TO2010_NaturalGas.rb index bda57cc2a2..575923f6aa 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAP1980TO2010_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAP1980TO2010_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Outpatient_BTAP1980TO2010_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_Outpatient_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'Outpatient',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Outpatient-BTAP1980TO2010-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_Outpatient_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'Outpatient', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Outpatient-BTAP1980TO2010-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb index 3e56c5d3b6..517cabc647 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Outpatient_BTAP1980TO2010_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_Outpatient_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'Outpatient',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Outpatient-BTAP1980TO2010-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_Outpatient_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'Outpatient', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Outpatient-BTAP1980TO2010-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAP1980TO2010_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAP1980TO2010_NaturalGasHPGasBackup.rb index 8e343af0c9..7b38487cff 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAP1980TO2010_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAP1980TO2010_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Outpatient_BTAP1980TO2010_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_Outpatient_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'Outpatient',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Outpatient-BTAP1980TO2010-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_Outpatient_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'Outpatient', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Outpatient-BTAP1980TO2010-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAPPRE1980_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAPPRE1980_Electricity.rb index 8db00677f1..3ccd2c6303 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAPPRE1980_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAPPRE1980_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Outpatient_BTAPPRE1980_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_Outpatient_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'Outpatient',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Outpatient-BTAPPRE1980-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_Outpatient_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'Outpatient', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Outpatient-BTAPPRE1980-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAPPRE1980_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAPPRE1980_ElectricityHPElecBackup.rb index 58ffd49d38..4abd808bdd 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAPPRE1980_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAPPRE1980_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Outpatient_BTAPPRE1980_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_Outpatient_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'Outpatient',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Outpatient-BTAPPRE1980-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_Outpatient_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'Outpatient', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Outpatient-BTAPPRE1980-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAPPRE1980_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAPPRE1980_ElectricityHPGasBackupMixed.rb index 5f876d5320..e1946e9bba 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAPPRE1980_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAPPRE1980_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Outpatient_BTAPPRE1980_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_Outpatient_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'Outpatient',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Outpatient-BTAPPRE1980-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_Outpatient_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'Outpatient', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Outpatient-BTAPPRE1980-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAPPRE1980_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAPPRE1980_NaturalGas.rb index 9ae34d2b1f..87514af8a0 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAPPRE1980_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAPPRE1980_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Outpatient_BTAPPRE1980_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_Outpatient_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'Outpatient',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Outpatient-BTAPPRE1980-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_Outpatient_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'Outpatient', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Outpatient-BTAPPRE1980-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb index 4b1fb3f791..f4bf204550 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Outpatient_BTAPPRE1980_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_Outpatient_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'Outpatient',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Outpatient-BTAPPRE1980-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_Outpatient_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'Outpatient', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Outpatient-BTAPPRE1980-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAPPRE1980_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAPPRE1980_NaturalGasHPGasBackup.rb index ad08f8abe1..ecad997d37 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAPPRE1980_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_BTAPPRE1980_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Outpatient_BTAPPRE1980_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_Outpatient_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'Outpatient',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Outpatient-BTAPPRE1980-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_Outpatient_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'Outpatient', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Outpatient-BTAPPRE1980-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2011_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2011_Electricity.rb index d9bc3101e6..4965d79d98 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2011_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2011_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Outpatient_NECB2011_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_Outpatient_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'Outpatient',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Outpatient-NECB2011-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_Outpatient_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'Outpatient', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Outpatient-NECB2011-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2011_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2011_ElectricityHPElecBackup.rb index 456547e2d0..3319fcad19 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2011_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2011_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Outpatient_NECB2011_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_Outpatient_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'Outpatient',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Outpatient-NECB2011-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_Outpatient_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'Outpatient', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Outpatient-NECB2011-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2011_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2011_ElectricityHPGasBackupMixed.rb index 838737f87e..afa9acb5c0 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2011_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2011_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Outpatient_NECB2011_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_Outpatient_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'Outpatient',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Outpatient-NECB2011-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_Outpatient_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'Outpatient', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Outpatient-NECB2011-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2011_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2011_NaturalGas.rb index 186e9bdd4a..4f738ad66c 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2011_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2011_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Outpatient_NECB2011_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_Outpatient_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'Outpatient',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Outpatient-NECB2011-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_Outpatient_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'Outpatient', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Outpatient-NECB2011-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2011_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2011_NaturalGasHPElecBackupMixed.rb index cdeb017ba4..3b134677fa 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2011_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2011_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Outpatient_NECB2011_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_Outpatient_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'Outpatient',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Outpatient-NECB2011-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_Outpatient_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'Outpatient', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Outpatient-NECB2011-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2011_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2011_NaturalGasHPGasBackup.rb index db63e4b416..fd114177b9 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2011_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2011_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Outpatient_NECB2011_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_Outpatient_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'Outpatient',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Outpatient-NECB2011-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_Outpatient_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'Outpatient', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Outpatient-NECB2011-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2015_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2015_Electricity.rb index f0b319bcd4..d1c0656524 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2015_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2015_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Outpatient_NECB2015_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_Outpatient_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'Outpatient',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Outpatient-NECB2015-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_Outpatient_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'Outpatient', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Outpatient-NECB2015-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2015_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2015_ElectricityHPElecBackup.rb index 453fdbad5f..b1d5a32d56 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2015_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2015_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Outpatient_NECB2015_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_Outpatient_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'Outpatient',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Outpatient-NECB2015-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_Outpatient_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'Outpatient', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Outpatient-NECB2015-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2015_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2015_ElectricityHPGasBackupMixed.rb index f9f7d7e464..07385e7cd7 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2015_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2015_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Outpatient_NECB2015_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_Outpatient_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'Outpatient',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Outpatient-NECB2015-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_Outpatient_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'Outpatient', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Outpatient-NECB2015-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2015_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2015_NaturalGas.rb index 472a5bc1e7..b7e9517644 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2015_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2015_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Outpatient_NECB2015_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_Outpatient_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'Outpatient',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Outpatient-NECB2015-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_Outpatient_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'Outpatient', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Outpatient-NECB2015-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2015_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2015_NaturalGasHPElecBackupMixed.rb index fc3a17abaf..f9d61ead9e 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2015_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2015_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Outpatient_NECB2015_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_Outpatient_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'Outpatient',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Outpatient-NECB2015-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_Outpatient_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'Outpatient', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Outpatient-NECB2015-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2015_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2015_NaturalGasHPGasBackup.rb index 639ef1b8d5..b14132df51 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2015_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2015_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Outpatient_NECB2015_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_Outpatient_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'Outpatient',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Outpatient-NECB2015-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_Outpatient_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'Outpatient', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Outpatient-NECB2015-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2017_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2017_Electricity.rb index 9698f1b51a..0c4b78a0eb 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2017_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2017_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Outpatient_NECB2017_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_Outpatient_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'Outpatient',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Outpatient-NECB2017-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_Outpatient_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'Outpatient', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Outpatient-NECB2017-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2017_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2017_ElectricityHPElecBackup.rb index ce26435eb3..04994ddcc3 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2017_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2017_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Outpatient_NECB2017_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_Outpatient_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'Outpatient',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Outpatient-NECB2017-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_Outpatient_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'Outpatient', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Outpatient-NECB2017-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2017_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2017_ElectricityHPGasBackupMixed.rb index 6f0146289a..e8ef7aa944 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2017_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2017_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Outpatient_NECB2017_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_Outpatient_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'Outpatient',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Outpatient-NECB2017-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_Outpatient_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'Outpatient', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Outpatient-NECB2017-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2017_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2017_NaturalGas.rb index 786c91ba24..84b32c81c6 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2017_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2017_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Outpatient_NECB2017_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_Outpatient_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'Outpatient',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Outpatient-NECB2017-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_Outpatient_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'Outpatient', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Outpatient-NECB2017-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2017_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2017_NaturalGasHPElecBackupMixed.rb index 84c2e306bf..ea9ddf10c5 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2017_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2017_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Outpatient_NECB2017_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_Outpatient_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'Outpatient',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Outpatient-NECB2017-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_Outpatient_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'Outpatient', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Outpatient-NECB2017-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2017_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2017_NaturalGasHPGasBackup.rb index 78bcbe6030..e9893f86dd 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2017_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2017_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Outpatient_NECB2017_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_Outpatient_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'Outpatient',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Outpatient-NECB2017-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_Outpatient_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'Outpatient', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Outpatient-NECB2017-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2020_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2020_Electricity.rb index b5ec081f90..ea5a006fda 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2020_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2020_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Outpatient_NECB2020_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_Outpatient_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'Outpatient',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Outpatient-NECB2020-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_Outpatient_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'Outpatient', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Outpatient-NECB2020-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2020_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2020_ElectricityHPElecBackup.rb index faa83d7419..cf503e096e 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2020_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2020_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Outpatient_NECB2020_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_Outpatient_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'Outpatient',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Outpatient-NECB2020-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_Outpatient_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'Outpatient', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Outpatient-NECB2020-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2020_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2020_ElectricityHPGasBackupMixed.rb index 42c86bdbcb..4ddfc603c3 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2020_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2020_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Outpatient_NECB2020_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_Outpatient_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'Outpatient',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Outpatient-NECB2020-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_Outpatient_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'Outpatient', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Outpatient-NECB2020-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2020_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2020_NaturalGas.rb index c7e4969b27..14f34d33ff 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2020_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2020_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Outpatient_NECB2020_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_Outpatient_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'Outpatient',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Outpatient-NECB2020-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_Outpatient_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'Outpatient', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Outpatient-NECB2020-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2020_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2020_NaturalGasHPElecBackupMixed.rb index cfd6da9c86..f1316779ba 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2020_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2020_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Outpatient_NECB2020_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_Outpatient_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'Outpatient',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Outpatient-NECB2020-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_Outpatient_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'Outpatient', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Outpatient-NECB2020-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2020_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2020_NaturalGasHPGasBackup.rb index 10d5e7b986..7d91df966f 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2020_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Outpatient_NECB2020_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Outpatient_NECB2020_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_Outpatient_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'Outpatient',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Outpatient-NECB2020-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_Outpatient_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'Outpatient', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Outpatient-NECB2020-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAP1980TO2010_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAP1980TO2010_Electricity.rb index 92b1564f74..4fa11bdb02 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAP1980TO2010_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAP1980TO2010_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_PrimarySchool_BTAP1980TO2010_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_PrimarySchool_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'PrimarySchool',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/PrimarySchool-BTAP1980TO2010-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_PrimarySchool_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'PrimarySchool', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/PrimarySchool-BTAP1980TO2010-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAP1980TO2010_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAP1980TO2010_ElectricityHPElecBackup.rb index 71bd1a4b19..adb5d0e124 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAP1980TO2010_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAP1980TO2010_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_PrimarySchool_BTAP1980TO2010_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_PrimarySchool_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'PrimarySchool',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/PrimarySchool-BTAP1980TO2010-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_PrimarySchool_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'PrimarySchool', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/PrimarySchool-BTAP1980TO2010-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb index da86efae5b..ec2124d7f8 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_PrimarySchool_BTAP1980TO2010_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_PrimarySchool_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'PrimarySchool',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/PrimarySchool-BTAP1980TO2010-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_PrimarySchool_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'PrimarySchool', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/PrimarySchool-BTAP1980TO2010-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAP1980TO2010_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAP1980TO2010_NaturalGas.rb index 43e85a3fb1..21519f46c8 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAP1980TO2010_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAP1980TO2010_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_PrimarySchool_BTAP1980TO2010_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_PrimarySchool_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'PrimarySchool',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/PrimarySchool-BTAP1980TO2010-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_PrimarySchool_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'PrimarySchool', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/PrimarySchool-BTAP1980TO2010-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb index af1cb41866..6edc5847df 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_PrimarySchool_BTAP1980TO2010_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_PrimarySchool_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'PrimarySchool',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/PrimarySchool-BTAP1980TO2010-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_PrimarySchool_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'PrimarySchool', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/PrimarySchool-BTAP1980TO2010-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAP1980TO2010_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAP1980TO2010_NaturalGasHPGasBackup.rb index caceced1fb..8f10a953c1 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAP1980TO2010_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAP1980TO2010_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_PrimarySchool_BTAP1980TO2010_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_PrimarySchool_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'PrimarySchool',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/PrimarySchool-BTAP1980TO2010-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_PrimarySchool_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'PrimarySchool', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/PrimarySchool-BTAP1980TO2010-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAPPRE1980_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAPPRE1980_Electricity.rb index 966527c035..df850fa073 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAPPRE1980_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAPPRE1980_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_PrimarySchool_BTAPPRE1980_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_PrimarySchool_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'PrimarySchool',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/PrimarySchool-BTAPPRE1980-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_PrimarySchool_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'PrimarySchool', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/PrimarySchool-BTAPPRE1980-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAPPRE1980_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAPPRE1980_ElectricityHPElecBackup.rb index ed945a5b80..1fade8cee1 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAPPRE1980_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAPPRE1980_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_PrimarySchool_BTAPPRE1980_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_PrimarySchool_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'PrimarySchool',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/PrimarySchool-BTAPPRE1980-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_PrimarySchool_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'PrimarySchool', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/PrimarySchool-BTAPPRE1980-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAPPRE1980_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAPPRE1980_ElectricityHPGasBackupMixed.rb index 34eb4e2e1b..d24fe31048 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAPPRE1980_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAPPRE1980_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_PrimarySchool_BTAPPRE1980_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_PrimarySchool_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'PrimarySchool',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/PrimarySchool-BTAPPRE1980-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_PrimarySchool_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'PrimarySchool', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/PrimarySchool-BTAPPRE1980-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAPPRE1980_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAPPRE1980_NaturalGas.rb index d89f9db38c..6a4cf4b7d7 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAPPRE1980_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAPPRE1980_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_PrimarySchool_BTAPPRE1980_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_PrimarySchool_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'PrimarySchool',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/PrimarySchool-BTAPPRE1980-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_PrimarySchool_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'PrimarySchool', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/PrimarySchool-BTAPPRE1980-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb index d09df589ae..00b1310965 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_PrimarySchool_BTAPPRE1980_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_PrimarySchool_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'PrimarySchool',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/PrimarySchool-BTAPPRE1980-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_PrimarySchool_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'PrimarySchool', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/PrimarySchool-BTAPPRE1980-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAPPRE1980_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAPPRE1980_NaturalGasHPGasBackup.rb index c0e07b88dd..b78d97f6d6 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAPPRE1980_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_BTAPPRE1980_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_PrimarySchool_BTAPPRE1980_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_PrimarySchool_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'PrimarySchool',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/PrimarySchool-BTAPPRE1980-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_PrimarySchool_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'PrimarySchool', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/PrimarySchool-BTAPPRE1980-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2011_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2011_Electricity.rb index ffc83d9fe7..a13e328418 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2011_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2011_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_PrimarySchool_NECB2011_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_PrimarySchool_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'PrimarySchool',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/PrimarySchool-NECB2011-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_PrimarySchool_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'PrimarySchool', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/PrimarySchool-NECB2011-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2011_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2011_ElectricityHPElecBackup.rb index 31e9878aea..db6a75d41b 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2011_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2011_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_PrimarySchool_NECB2011_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_PrimarySchool_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'PrimarySchool',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/PrimarySchool-NECB2011-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_PrimarySchool_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'PrimarySchool', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/PrimarySchool-NECB2011-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2011_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2011_ElectricityHPGasBackupMixed.rb index fda7af44bb..a1fb1ec186 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2011_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2011_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_PrimarySchool_NECB2011_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_PrimarySchool_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'PrimarySchool',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/PrimarySchool-NECB2011-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_PrimarySchool_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'PrimarySchool', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/PrimarySchool-NECB2011-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2011_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2011_NaturalGas.rb index 0ed6fae54f..2230ecbd6e 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2011_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2011_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_PrimarySchool_NECB2011_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_PrimarySchool_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'PrimarySchool',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/PrimarySchool-NECB2011-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_PrimarySchool_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'PrimarySchool', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/PrimarySchool-NECB2011-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2011_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2011_NaturalGasHPElecBackupMixed.rb index 5f6cbd49e2..27894b5d5d 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2011_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2011_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_PrimarySchool_NECB2011_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_PrimarySchool_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'PrimarySchool',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/PrimarySchool-NECB2011-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_PrimarySchool_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'PrimarySchool', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/PrimarySchool-NECB2011-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2011_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2011_NaturalGasHPGasBackup.rb index 0bdaafd3de..f1bd196bc9 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2011_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2011_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_PrimarySchool_NECB2011_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_PrimarySchool_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'PrimarySchool',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/PrimarySchool-NECB2011-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_PrimarySchool_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'PrimarySchool', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/PrimarySchool-NECB2011-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2015_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2015_Electricity.rb index 0c31f3c04c..cdd12ba3f1 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2015_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2015_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_PrimarySchool_NECB2015_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_PrimarySchool_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'PrimarySchool',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/PrimarySchool-NECB2015-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_PrimarySchool_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'PrimarySchool', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/PrimarySchool-NECB2015-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2015_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2015_ElectricityHPElecBackup.rb index 42bb151ed6..e3e9accf68 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2015_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2015_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_PrimarySchool_NECB2015_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_PrimarySchool_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'PrimarySchool',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/PrimarySchool-NECB2015-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_PrimarySchool_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'PrimarySchool', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/PrimarySchool-NECB2015-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2015_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2015_ElectricityHPGasBackupMixed.rb index 2c5073b3c8..e7af6bc304 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2015_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2015_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_PrimarySchool_NECB2015_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_PrimarySchool_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'PrimarySchool',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/PrimarySchool-NECB2015-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_PrimarySchool_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'PrimarySchool', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/PrimarySchool-NECB2015-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2015_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2015_NaturalGas.rb index 85cc49e82a..3eb2c214d7 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2015_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2015_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_PrimarySchool_NECB2015_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_PrimarySchool_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'PrimarySchool',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/PrimarySchool-NECB2015-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_PrimarySchool_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'PrimarySchool', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/PrimarySchool-NECB2015-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2015_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2015_NaturalGasHPElecBackupMixed.rb index ff34577ad9..bacf67a63f 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2015_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2015_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_PrimarySchool_NECB2015_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_PrimarySchool_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'PrimarySchool',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/PrimarySchool-NECB2015-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_PrimarySchool_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'PrimarySchool', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/PrimarySchool-NECB2015-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2015_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2015_NaturalGasHPGasBackup.rb index 8d652c4660..c080165744 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2015_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2015_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_PrimarySchool_NECB2015_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_PrimarySchool_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'PrimarySchool',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/PrimarySchool-NECB2015-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_PrimarySchool_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'PrimarySchool', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/PrimarySchool-NECB2015-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2017_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2017_Electricity.rb index 3111920ae2..0a0c526af4 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2017_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2017_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_PrimarySchool_NECB2017_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_PrimarySchool_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'PrimarySchool',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/PrimarySchool-NECB2017-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_PrimarySchool_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'PrimarySchool', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/PrimarySchool-NECB2017-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2017_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2017_ElectricityHPElecBackup.rb index ca3f74f0ed..12d6477306 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2017_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2017_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_PrimarySchool_NECB2017_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_PrimarySchool_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'PrimarySchool',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/PrimarySchool-NECB2017-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_PrimarySchool_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'PrimarySchool', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/PrimarySchool-NECB2017-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2017_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2017_ElectricityHPGasBackupMixed.rb index 7bebea97ca..2fcd9650d6 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2017_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2017_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_PrimarySchool_NECB2017_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_PrimarySchool_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'PrimarySchool',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/PrimarySchool-NECB2017-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_PrimarySchool_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'PrimarySchool', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/PrimarySchool-NECB2017-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2017_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2017_NaturalGas.rb index b350bab103..1c61c57e15 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2017_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2017_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_PrimarySchool_NECB2017_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_PrimarySchool_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'PrimarySchool',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/PrimarySchool-NECB2017-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_PrimarySchool_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'PrimarySchool', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/PrimarySchool-NECB2017-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2017_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2017_NaturalGasHPElecBackupMixed.rb index 823e69d62e..b8d34921b2 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2017_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2017_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_PrimarySchool_NECB2017_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_PrimarySchool_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'PrimarySchool',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/PrimarySchool-NECB2017-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_PrimarySchool_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'PrimarySchool', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/PrimarySchool-NECB2017-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2017_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2017_NaturalGasHPGasBackup.rb index f34d3d94c5..c7f294d056 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2017_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2017_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_PrimarySchool_NECB2017_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_PrimarySchool_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'PrimarySchool',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/PrimarySchool-NECB2017-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_PrimarySchool_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'PrimarySchool', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/PrimarySchool-NECB2017-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2020_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2020_Electricity.rb index 445fa6a4f3..4b9bf0a3ce 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2020_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2020_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_PrimarySchool_NECB2020_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_PrimarySchool_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'PrimarySchool',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/PrimarySchool-NECB2020-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_PrimarySchool_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'PrimarySchool', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/PrimarySchool-NECB2020-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2020_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2020_ElectricityHPElecBackup.rb index a83c8d9ca1..e44ae14b8b 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2020_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2020_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_PrimarySchool_NECB2020_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_PrimarySchool_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'PrimarySchool',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/PrimarySchool-NECB2020-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_PrimarySchool_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'PrimarySchool', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/PrimarySchool-NECB2020-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2020_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2020_ElectricityHPGasBackupMixed.rb index 0391aaf617..0e1a92363f 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2020_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2020_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_PrimarySchool_NECB2020_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_PrimarySchool_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'PrimarySchool',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/PrimarySchool-NECB2020-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_PrimarySchool_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'PrimarySchool', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/PrimarySchool-NECB2020-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2020_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2020_NaturalGas.rb index 0c283bd1df..1d1eb41832 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2020_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2020_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_PrimarySchool_NECB2020_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_PrimarySchool_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'PrimarySchool',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/PrimarySchool-NECB2020-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_PrimarySchool_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'PrimarySchool', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/PrimarySchool-NECB2020-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2020_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2020_NaturalGasHPElecBackupMixed.rb index dae3fc408d..a944dade46 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2020_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2020_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_PrimarySchool_NECB2020_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_PrimarySchool_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'PrimarySchool',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/PrimarySchool-NECB2020-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_PrimarySchool_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'PrimarySchool', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/PrimarySchool-NECB2020-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2020_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2020_NaturalGasHPGasBackup.rb index 397ec343d1..7563f6e14d 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2020_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_PrimarySchool_NECB2020_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_PrimarySchool_NECB2020_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_PrimarySchool_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'PrimarySchool',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/PrimarySchool-NECB2020-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_PrimarySchool_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'PrimarySchool', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/PrimarySchool-NECB2020-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAP1980TO2010_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAP1980TO2010_Electricity.rb index 5242276353..cbb572669e 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAP1980TO2010_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAP1980TO2010_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_QuickServiceRestaurant_BTAP1980TO2010_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_QuickServiceRestaurant_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'QuickServiceRestaurant',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/QuickServiceRestaurant-BTAP1980TO2010-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_QuickServiceRestaurant_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'QuickServiceRestaurant', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/QuickServiceRestaurant-BTAP1980TO2010-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAP1980TO2010_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAP1980TO2010_ElectricityHPElecBackup.rb index ebcb9d1960..e19c333037 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAP1980TO2010_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAP1980TO2010_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_QuickServiceRestaurant_BTAP1980TO2010_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_QuickServiceRestaurant_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'QuickServiceRestaurant',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/QuickServiceRestaurant-BTAP1980TO2010-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_QuickServiceRestaurant_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'QuickServiceRestaurant', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/QuickServiceRestaurant-BTAP1980TO2010-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb index be1a811a7f..4e5063f213 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_QuickServiceRestaurant_BTAP1980TO2010_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_QuickServiceRestaurant_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'QuickServiceRestaurant',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/QuickServiceRestaurant-BTAP1980TO2010-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_QuickServiceRestaurant_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'QuickServiceRestaurant', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/QuickServiceRestaurant-BTAP1980TO2010-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAP1980TO2010_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAP1980TO2010_NaturalGas.rb index 027fbbbcd7..09a4751d16 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAP1980TO2010_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAP1980TO2010_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_QuickServiceRestaurant_BTAP1980TO2010_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_QuickServiceRestaurant_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'QuickServiceRestaurant',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/QuickServiceRestaurant-BTAP1980TO2010-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_QuickServiceRestaurant_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'QuickServiceRestaurant', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/QuickServiceRestaurant-BTAP1980TO2010-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb index 386f2e9831..f39748cec5 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_QuickServiceRestaurant_BTAP1980TO2010_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_QuickServiceRestaurant_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'QuickServiceRestaurant',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/QuickServiceRestaurant-BTAP1980TO2010-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_QuickServiceRestaurant_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'QuickServiceRestaurant', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/QuickServiceRestaurant-BTAP1980TO2010-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAP1980TO2010_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAP1980TO2010_NaturalGasHPGasBackup.rb index a3bf2419f1..0fa6622629 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAP1980TO2010_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAP1980TO2010_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_QuickServiceRestaurant_BTAP1980TO2010_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_QuickServiceRestaurant_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'QuickServiceRestaurant',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/QuickServiceRestaurant-BTAP1980TO2010-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_QuickServiceRestaurant_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'QuickServiceRestaurant', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/QuickServiceRestaurant-BTAP1980TO2010-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAPPRE1980_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAPPRE1980_Electricity.rb index cf96b85f4e..63288ce300 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAPPRE1980_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAPPRE1980_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_QuickServiceRestaurant_BTAPPRE1980_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_QuickServiceRestaurant_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'QuickServiceRestaurant',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/QuickServiceRestaurant-BTAPPRE1980-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_QuickServiceRestaurant_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'QuickServiceRestaurant', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/QuickServiceRestaurant-BTAPPRE1980-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAPPRE1980_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAPPRE1980_ElectricityHPElecBackup.rb index c188b4722c..c85b360ed4 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAPPRE1980_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAPPRE1980_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_QuickServiceRestaurant_BTAPPRE1980_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_QuickServiceRestaurant_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'QuickServiceRestaurant',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/QuickServiceRestaurant-BTAPPRE1980-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_QuickServiceRestaurant_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'QuickServiceRestaurant', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/QuickServiceRestaurant-BTAPPRE1980-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAPPRE1980_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAPPRE1980_ElectricityHPGasBackupMixed.rb index 5d37df7d8f..6a571e32ea 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAPPRE1980_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAPPRE1980_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_QuickServiceRestaurant_BTAPPRE1980_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_QuickServiceRestaurant_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'QuickServiceRestaurant',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/QuickServiceRestaurant-BTAPPRE1980-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_QuickServiceRestaurant_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'QuickServiceRestaurant', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/QuickServiceRestaurant-BTAPPRE1980-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAPPRE1980_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAPPRE1980_NaturalGas.rb index 4563cf3e3a..531608dadf 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAPPRE1980_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAPPRE1980_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_QuickServiceRestaurant_BTAPPRE1980_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_QuickServiceRestaurant_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'QuickServiceRestaurant',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/QuickServiceRestaurant-BTAPPRE1980-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_QuickServiceRestaurant_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'QuickServiceRestaurant', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/QuickServiceRestaurant-BTAPPRE1980-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb index 461aa63846..6ead8c828b 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_QuickServiceRestaurant_BTAPPRE1980_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_QuickServiceRestaurant_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'QuickServiceRestaurant',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/QuickServiceRestaurant-BTAPPRE1980-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_QuickServiceRestaurant_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'QuickServiceRestaurant', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/QuickServiceRestaurant-BTAPPRE1980-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAPPRE1980_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAPPRE1980_NaturalGasHPGasBackup.rb index f6a029735c..a821c6d4e7 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAPPRE1980_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_BTAPPRE1980_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_QuickServiceRestaurant_BTAPPRE1980_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_QuickServiceRestaurant_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'QuickServiceRestaurant',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/QuickServiceRestaurant-BTAPPRE1980-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_QuickServiceRestaurant_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'QuickServiceRestaurant', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/QuickServiceRestaurant-BTAPPRE1980-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2011_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2011_Electricity.rb index bbb95a5998..ef3a25ca63 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2011_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2011_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_QuickServiceRestaurant_NECB2011_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_QuickServiceRestaurant_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'QuickServiceRestaurant',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/QuickServiceRestaurant-NECB2011-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_QuickServiceRestaurant_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'QuickServiceRestaurant', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/QuickServiceRestaurant-NECB2011-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2011_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2011_ElectricityHPElecBackup.rb index b72efda098..2d7593f944 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2011_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2011_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_QuickServiceRestaurant_NECB2011_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_QuickServiceRestaurant_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'QuickServiceRestaurant',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/QuickServiceRestaurant-NECB2011-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_QuickServiceRestaurant_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'QuickServiceRestaurant', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/QuickServiceRestaurant-NECB2011-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2011_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2011_ElectricityHPGasBackupMixed.rb index e65b17e072..05ea5294df 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2011_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2011_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_QuickServiceRestaurant_NECB2011_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_QuickServiceRestaurant_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'QuickServiceRestaurant',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/QuickServiceRestaurant-NECB2011-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_QuickServiceRestaurant_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'QuickServiceRestaurant', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/QuickServiceRestaurant-NECB2011-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2011_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2011_NaturalGas.rb index 933ac4135a..92c97f53ca 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2011_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2011_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_QuickServiceRestaurant_NECB2011_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_QuickServiceRestaurant_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'QuickServiceRestaurant',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/QuickServiceRestaurant-NECB2011-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_QuickServiceRestaurant_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'QuickServiceRestaurant', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/QuickServiceRestaurant-NECB2011-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2011_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2011_NaturalGasHPElecBackupMixed.rb index 6e97fdca55..b3c4f07444 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2011_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2011_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_QuickServiceRestaurant_NECB2011_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_QuickServiceRestaurant_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'QuickServiceRestaurant',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/QuickServiceRestaurant-NECB2011-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_QuickServiceRestaurant_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'QuickServiceRestaurant', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/QuickServiceRestaurant-NECB2011-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2011_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2011_NaturalGasHPGasBackup.rb index 93b54db478..eea6107654 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2011_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2011_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_QuickServiceRestaurant_NECB2011_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_QuickServiceRestaurant_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'QuickServiceRestaurant',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/QuickServiceRestaurant-NECB2011-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_QuickServiceRestaurant_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'QuickServiceRestaurant', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/QuickServiceRestaurant-NECB2011-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2015_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2015_Electricity.rb index 4dfe9e12e6..46ad286c31 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2015_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2015_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_QuickServiceRestaurant_NECB2015_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_QuickServiceRestaurant_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'QuickServiceRestaurant',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/QuickServiceRestaurant-NECB2015-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_QuickServiceRestaurant_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'QuickServiceRestaurant', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/QuickServiceRestaurant-NECB2015-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2015_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2015_ElectricityHPElecBackup.rb index 0d7c09a938..85e68c893e 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2015_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2015_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_QuickServiceRestaurant_NECB2015_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_QuickServiceRestaurant_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'QuickServiceRestaurant',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/QuickServiceRestaurant-NECB2015-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_QuickServiceRestaurant_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'QuickServiceRestaurant', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/QuickServiceRestaurant-NECB2015-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2015_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2015_ElectricityHPGasBackupMixed.rb index a5874308f9..6410fb8108 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2015_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2015_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_QuickServiceRestaurant_NECB2015_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_QuickServiceRestaurant_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'QuickServiceRestaurant',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/QuickServiceRestaurant-NECB2015-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_QuickServiceRestaurant_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'QuickServiceRestaurant', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/QuickServiceRestaurant-NECB2015-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2015_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2015_NaturalGas.rb index 8a2649915e..40206b2cfe 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2015_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2015_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_QuickServiceRestaurant_NECB2015_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_QuickServiceRestaurant_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'QuickServiceRestaurant',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/QuickServiceRestaurant-NECB2015-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_QuickServiceRestaurant_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'QuickServiceRestaurant', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/QuickServiceRestaurant-NECB2015-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2015_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2015_NaturalGasHPElecBackupMixed.rb index 499ef006bf..e964339e9e 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2015_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2015_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_QuickServiceRestaurant_NECB2015_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_QuickServiceRestaurant_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'QuickServiceRestaurant',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/QuickServiceRestaurant-NECB2015-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_QuickServiceRestaurant_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'QuickServiceRestaurant', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/QuickServiceRestaurant-NECB2015-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2015_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2015_NaturalGasHPGasBackup.rb index 78d7b734f0..8c42bd9ab9 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2015_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2015_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_QuickServiceRestaurant_NECB2015_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_QuickServiceRestaurant_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'QuickServiceRestaurant',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/QuickServiceRestaurant-NECB2015-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_QuickServiceRestaurant_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'QuickServiceRestaurant', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/QuickServiceRestaurant-NECB2015-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2017_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2017_Electricity.rb index 04296223c7..4f49734dfa 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2017_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2017_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_QuickServiceRestaurant_NECB2017_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_QuickServiceRestaurant_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'QuickServiceRestaurant',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/QuickServiceRestaurant-NECB2017-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_QuickServiceRestaurant_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'QuickServiceRestaurant', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/QuickServiceRestaurant-NECB2017-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2017_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2017_ElectricityHPElecBackup.rb index 076afb5e37..87975f8f0b 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2017_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2017_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_QuickServiceRestaurant_NECB2017_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_QuickServiceRestaurant_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'QuickServiceRestaurant',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/QuickServiceRestaurant-NECB2017-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_QuickServiceRestaurant_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'QuickServiceRestaurant', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/QuickServiceRestaurant-NECB2017-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2017_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2017_ElectricityHPGasBackupMixed.rb index 6d61f37b3b..4a028ecc9e 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2017_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2017_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_QuickServiceRestaurant_NECB2017_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_QuickServiceRestaurant_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'QuickServiceRestaurant',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/QuickServiceRestaurant-NECB2017-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_QuickServiceRestaurant_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'QuickServiceRestaurant', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/QuickServiceRestaurant-NECB2017-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2017_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2017_NaturalGas.rb index db95e6e958..30563608b4 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2017_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2017_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_QuickServiceRestaurant_NECB2017_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_QuickServiceRestaurant_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'QuickServiceRestaurant',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/QuickServiceRestaurant-NECB2017-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_QuickServiceRestaurant_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'QuickServiceRestaurant', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/QuickServiceRestaurant-NECB2017-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2017_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2017_NaturalGasHPElecBackupMixed.rb index 7dc7cfdf4f..20dc4769bd 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2017_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2017_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_QuickServiceRestaurant_NECB2017_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_QuickServiceRestaurant_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'QuickServiceRestaurant',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/QuickServiceRestaurant-NECB2017-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_QuickServiceRestaurant_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'QuickServiceRestaurant', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/QuickServiceRestaurant-NECB2017-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2017_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2017_NaturalGasHPGasBackup.rb index 57cf60a2a8..a27c9f3196 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2017_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2017_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_QuickServiceRestaurant_NECB2017_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_QuickServiceRestaurant_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'QuickServiceRestaurant',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/QuickServiceRestaurant-NECB2017-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_QuickServiceRestaurant_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'QuickServiceRestaurant', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/QuickServiceRestaurant-NECB2017-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2020_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2020_Electricity.rb index bd38e3dcbf..bd8146f4e8 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2020_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2020_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_QuickServiceRestaurant_NECB2020_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_QuickServiceRestaurant_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'QuickServiceRestaurant',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/QuickServiceRestaurant-NECB2020-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_QuickServiceRestaurant_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'QuickServiceRestaurant', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/QuickServiceRestaurant-NECB2020-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2020_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2020_ElectricityHPElecBackup.rb index 976a2b9669..2ed18d4440 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2020_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2020_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_QuickServiceRestaurant_NECB2020_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_QuickServiceRestaurant_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'QuickServiceRestaurant',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/QuickServiceRestaurant-NECB2020-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_QuickServiceRestaurant_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'QuickServiceRestaurant', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/QuickServiceRestaurant-NECB2020-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2020_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2020_ElectricityHPGasBackupMixed.rb index 25bad433af..0d756033b7 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2020_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2020_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_QuickServiceRestaurant_NECB2020_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_QuickServiceRestaurant_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'QuickServiceRestaurant',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/QuickServiceRestaurant-NECB2020-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_QuickServiceRestaurant_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'QuickServiceRestaurant', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/QuickServiceRestaurant-NECB2020-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2020_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2020_NaturalGas.rb index 97181c7aea..6283bf9559 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2020_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2020_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_QuickServiceRestaurant_NECB2020_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_QuickServiceRestaurant_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'QuickServiceRestaurant',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/QuickServiceRestaurant-NECB2020-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_QuickServiceRestaurant_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'QuickServiceRestaurant', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/QuickServiceRestaurant-NECB2020-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2020_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2020_NaturalGasHPElecBackupMixed.rb index 9f87c0edbf..02cfff37ef 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2020_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2020_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_QuickServiceRestaurant_NECB2020_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_QuickServiceRestaurant_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'QuickServiceRestaurant',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/QuickServiceRestaurant-NECB2020-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_QuickServiceRestaurant_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'QuickServiceRestaurant', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/QuickServiceRestaurant-NECB2020-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2020_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2020_NaturalGasHPGasBackup.rb index 95d3c5cd87..f314bf07cb 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2020_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_QuickServiceRestaurant_NECB2020_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_QuickServiceRestaurant_NECB2020_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_QuickServiceRestaurant_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'QuickServiceRestaurant',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/QuickServiceRestaurant-NECB2020-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_QuickServiceRestaurant_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'QuickServiceRestaurant', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/QuickServiceRestaurant-NECB2020-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAP1980TO2010_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAP1980TO2010_Electricity.rb index 8f61c5052c..c3b6430d1e 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAP1980TO2010_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAP1980TO2010_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStandalone_BTAP1980TO2010_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_RetailStandalone_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'RetailStandalone',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStandalone-BTAP1980TO2010-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_RetailStandalone_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'RetailStandalone', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStandalone-BTAP1980TO2010-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAP1980TO2010_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAP1980TO2010_ElectricityHPElecBackup.rb index a16299ee57..ef27cc5466 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAP1980TO2010_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAP1980TO2010_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStandalone_BTAP1980TO2010_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_RetailStandalone_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'RetailStandalone',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStandalone-BTAP1980TO2010-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_RetailStandalone_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'RetailStandalone', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStandalone-BTAP1980TO2010-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb index 25bccf5a4c..c101056311 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStandalone_BTAP1980TO2010_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_RetailStandalone_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'RetailStandalone',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStandalone-BTAP1980TO2010-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_RetailStandalone_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'RetailStandalone', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStandalone-BTAP1980TO2010-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAP1980TO2010_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAP1980TO2010_NaturalGas.rb index 16ed70d660..d098764f3f 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAP1980TO2010_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAP1980TO2010_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStandalone_BTAP1980TO2010_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_RetailStandalone_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'RetailStandalone',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStandalone-BTAP1980TO2010-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_RetailStandalone_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'RetailStandalone', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStandalone-BTAP1980TO2010-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb index ad2cf674b0..518545732e 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStandalone_BTAP1980TO2010_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_RetailStandalone_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'RetailStandalone',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStandalone-BTAP1980TO2010-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_RetailStandalone_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'RetailStandalone', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStandalone-BTAP1980TO2010-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAP1980TO2010_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAP1980TO2010_NaturalGasHPGasBackup.rb index b35560ff25..0c5f697be4 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAP1980TO2010_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAP1980TO2010_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStandalone_BTAP1980TO2010_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_RetailStandalone_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'RetailStandalone',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStandalone-BTAP1980TO2010-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_RetailStandalone_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'RetailStandalone', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStandalone-BTAP1980TO2010-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAPPRE1980_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAPPRE1980_Electricity.rb index 1f9ef8c08e..5b72d5df21 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAPPRE1980_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAPPRE1980_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStandalone_BTAPPRE1980_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_RetailStandalone_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'RetailStandalone',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStandalone-BTAPPRE1980-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_RetailStandalone_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'RetailStandalone', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStandalone-BTAPPRE1980-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAPPRE1980_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAPPRE1980_ElectricityHPElecBackup.rb index 6389637c04..7d40a76433 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAPPRE1980_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAPPRE1980_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStandalone_BTAPPRE1980_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_RetailStandalone_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'RetailStandalone',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStandalone-BTAPPRE1980-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_RetailStandalone_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'RetailStandalone', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStandalone-BTAPPRE1980-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAPPRE1980_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAPPRE1980_ElectricityHPGasBackupMixed.rb index 394627eea6..80da423bb2 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAPPRE1980_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAPPRE1980_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStandalone_BTAPPRE1980_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_RetailStandalone_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'RetailStandalone',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStandalone-BTAPPRE1980-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_RetailStandalone_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'RetailStandalone', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStandalone-BTAPPRE1980-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAPPRE1980_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAPPRE1980_NaturalGas.rb index a65756381a..33e47f1304 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAPPRE1980_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAPPRE1980_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStandalone_BTAPPRE1980_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_RetailStandalone_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'RetailStandalone',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStandalone-BTAPPRE1980-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_RetailStandalone_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'RetailStandalone', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStandalone-BTAPPRE1980-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb index c68c4e13f5..080072539c 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStandalone_BTAPPRE1980_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_RetailStandalone_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'RetailStandalone',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStandalone-BTAPPRE1980-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_RetailStandalone_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'RetailStandalone', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStandalone-BTAPPRE1980-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAPPRE1980_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAPPRE1980_NaturalGasHPGasBackup.rb index 9a7ee660c0..7c36b19131 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAPPRE1980_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_BTAPPRE1980_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStandalone_BTAPPRE1980_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_RetailStandalone_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'RetailStandalone',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStandalone-BTAPPRE1980-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_RetailStandalone_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'RetailStandalone', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStandalone-BTAPPRE1980-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2011_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2011_Electricity.rb index 5b8f339362..1cbd7aef6b 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2011_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2011_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStandalone_NECB2011_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_RetailStandalone_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'RetailStandalone',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStandalone-NECB2011-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_RetailStandalone_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'RetailStandalone', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStandalone-NECB2011-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2011_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2011_ElectricityHPElecBackup.rb index 6781c9b1af..ef072ba5f8 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2011_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2011_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStandalone_NECB2011_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_RetailStandalone_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'RetailStandalone',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStandalone-NECB2011-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_RetailStandalone_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'RetailStandalone', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStandalone-NECB2011-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2011_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2011_ElectricityHPGasBackupMixed.rb index ec8e7575cc..0933041bcf 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2011_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2011_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStandalone_NECB2011_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_RetailStandalone_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'RetailStandalone',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStandalone-NECB2011-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_RetailStandalone_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'RetailStandalone', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStandalone-NECB2011-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2011_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2011_NaturalGas.rb index f5e04011e2..ffd3827ac0 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2011_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2011_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStandalone_NECB2011_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_RetailStandalone_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'RetailStandalone',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStandalone-NECB2011-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_RetailStandalone_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'RetailStandalone', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStandalone-NECB2011-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2011_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2011_NaturalGasHPElecBackupMixed.rb index 60cff4cfce..7ef7c4fa3e 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2011_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2011_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStandalone_NECB2011_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_RetailStandalone_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'RetailStandalone',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStandalone-NECB2011-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_RetailStandalone_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'RetailStandalone', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStandalone-NECB2011-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2011_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2011_NaturalGasHPGasBackup.rb index 700ec24c3f..783869f7a0 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2011_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2011_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStandalone_NECB2011_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_RetailStandalone_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'RetailStandalone',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStandalone-NECB2011-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_RetailStandalone_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'RetailStandalone', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStandalone-NECB2011-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2015_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2015_Electricity.rb index a1cd7615fb..427f903ccb 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2015_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2015_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStandalone_NECB2015_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_RetailStandalone_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'RetailStandalone',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStandalone-NECB2015-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_RetailStandalone_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'RetailStandalone', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStandalone-NECB2015-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2015_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2015_ElectricityHPElecBackup.rb index ec17feb3a0..828b0b64a5 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2015_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2015_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStandalone_NECB2015_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_RetailStandalone_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'RetailStandalone',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStandalone-NECB2015-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_RetailStandalone_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'RetailStandalone', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStandalone-NECB2015-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2015_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2015_ElectricityHPGasBackupMixed.rb index 92aecd7bf5..067e1204a7 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2015_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2015_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStandalone_NECB2015_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_RetailStandalone_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'RetailStandalone',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStandalone-NECB2015-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_RetailStandalone_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'RetailStandalone', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStandalone-NECB2015-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2015_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2015_NaturalGas.rb index f41e7332f0..c2cad6c7f6 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2015_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2015_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStandalone_NECB2015_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_RetailStandalone_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'RetailStandalone',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStandalone-NECB2015-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_RetailStandalone_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'RetailStandalone', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStandalone-NECB2015-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2015_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2015_NaturalGasHPElecBackupMixed.rb index de30d11cd5..47f4aae5a0 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2015_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2015_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStandalone_NECB2015_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_RetailStandalone_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'RetailStandalone',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStandalone-NECB2015-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_RetailStandalone_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'RetailStandalone', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStandalone-NECB2015-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2015_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2015_NaturalGasHPGasBackup.rb index 3043d0100f..1b5c86d7ac 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2015_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2015_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStandalone_NECB2015_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_RetailStandalone_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'RetailStandalone',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStandalone-NECB2015-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_RetailStandalone_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'RetailStandalone', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStandalone-NECB2015-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2017_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2017_Electricity.rb index 9438e45220..5c3b43afa9 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2017_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2017_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStandalone_NECB2017_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_RetailStandalone_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'RetailStandalone',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStandalone-NECB2017-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_RetailStandalone_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'RetailStandalone', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStandalone-NECB2017-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2017_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2017_ElectricityHPElecBackup.rb index 8e010b660b..ba75f96939 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2017_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2017_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStandalone_NECB2017_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_RetailStandalone_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'RetailStandalone',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStandalone-NECB2017-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_RetailStandalone_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'RetailStandalone', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStandalone-NECB2017-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2017_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2017_ElectricityHPGasBackupMixed.rb index 280ec94193..2020a51d6d 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2017_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2017_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStandalone_NECB2017_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_RetailStandalone_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'RetailStandalone',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStandalone-NECB2017-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_RetailStandalone_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'RetailStandalone', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStandalone-NECB2017-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2017_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2017_NaturalGas.rb index 4c0998dffe..90afd3a545 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2017_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2017_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStandalone_NECB2017_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_RetailStandalone_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'RetailStandalone',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStandalone-NECB2017-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_RetailStandalone_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'RetailStandalone', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStandalone-NECB2017-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2017_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2017_NaturalGasHPElecBackupMixed.rb index e2d94e4ecb..888bcaf8fd 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2017_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2017_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStandalone_NECB2017_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_RetailStandalone_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'RetailStandalone',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStandalone-NECB2017-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_RetailStandalone_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'RetailStandalone', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStandalone-NECB2017-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2017_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2017_NaturalGasHPGasBackup.rb index 2fd512991e..21a4d90f7a 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2017_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2017_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStandalone_NECB2017_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_RetailStandalone_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'RetailStandalone',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStandalone-NECB2017-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_RetailStandalone_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'RetailStandalone', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStandalone-NECB2017-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2020_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2020_Electricity.rb index 4336b042e7..cdcb46d3b4 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2020_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2020_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStandalone_NECB2020_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_RetailStandalone_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'RetailStandalone',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStandalone-NECB2020-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_RetailStandalone_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'RetailStandalone', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStandalone-NECB2020-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2020_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2020_ElectricityHPElecBackup.rb index 3ac2a6e990..b6d9d745d3 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2020_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2020_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStandalone_NECB2020_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_RetailStandalone_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'RetailStandalone',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStandalone-NECB2020-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_RetailStandalone_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'RetailStandalone', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStandalone-NECB2020-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2020_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2020_ElectricityHPGasBackupMixed.rb index 00ce279857..6dcbf19e21 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2020_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2020_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStandalone_NECB2020_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_RetailStandalone_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'RetailStandalone',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStandalone-NECB2020-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_RetailStandalone_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'RetailStandalone', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStandalone-NECB2020-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2020_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2020_NaturalGas.rb index cda359576c..91a6d4b21d 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2020_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2020_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStandalone_NECB2020_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_RetailStandalone_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'RetailStandalone',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStandalone-NECB2020-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_RetailStandalone_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'RetailStandalone', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStandalone-NECB2020-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2020_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2020_NaturalGasHPElecBackupMixed.rb index 0dd2e3e885..6c7e1f2a9c 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2020_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2020_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStandalone_NECB2020_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_RetailStandalone_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'RetailStandalone',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStandalone-NECB2020-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_RetailStandalone_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'RetailStandalone', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStandalone-NECB2020-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2020_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2020_NaturalGasHPGasBackup.rb index 62eb525836..4d7948d644 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2020_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStandalone_NECB2020_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStandalone_NECB2020_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_RetailStandalone_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'RetailStandalone',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStandalone-NECB2020-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_RetailStandalone_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'RetailStandalone', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStandalone-NECB2020-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAP1980TO2010_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAP1980TO2010_Electricity.rb index 87a6c02672..69322031b7 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAP1980TO2010_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAP1980TO2010_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStripmall_BTAP1980TO2010_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_RetailStripmall_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'RetailStripmall',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStripmall-BTAP1980TO2010-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_RetailStripmall_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'RetailStripmall', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStripmall-BTAP1980TO2010-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAP1980TO2010_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAP1980TO2010_ElectricityHPElecBackup.rb index 9b6ad2bf00..dc180fa779 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAP1980TO2010_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAP1980TO2010_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStripmall_BTAP1980TO2010_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_RetailStripmall_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'RetailStripmall',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStripmall-BTAP1980TO2010-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_RetailStripmall_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'RetailStripmall', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStripmall-BTAP1980TO2010-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb index dec7d4d47e..19b0a39786 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStripmall_BTAP1980TO2010_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_RetailStripmall_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'RetailStripmall',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStripmall-BTAP1980TO2010-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_RetailStripmall_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'RetailStripmall', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStripmall-BTAP1980TO2010-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAP1980TO2010_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAP1980TO2010_NaturalGas.rb index 757687b829..a3ae7146f7 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAP1980TO2010_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAP1980TO2010_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStripmall_BTAP1980TO2010_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_RetailStripmall_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'RetailStripmall',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStripmall-BTAP1980TO2010-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_RetailStripmall_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'RetailStripmall', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStripmall-BTAP1980TO2010-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb index 59f5b1301b..aea1e3a71f 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStripmall_BTAP1980TO2010_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_RetailStripmall_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'RetailStripmall',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStripmall-BTAP1980TO2010-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_RetailStripmall_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'RetailStripmall', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStripmall-BTAP1980TO2010-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAP1980TO2010_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAP1980TO2010_NaturalGasHPGasBackup.rb index 218ed3a889..55a04814e9 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAP1980TO2010_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAP1980TO2010_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStripmall_BTAP1980TO2010_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_RetailStripmall_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'RetailStripmall',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStripmall-BTAP1980TO2010-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_RetailStripmall_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'RetailStripmall', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStripmall-BTAP1980TO2010-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAPPRE1980_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAPPRE1980_Electricity.rb index f2025ff107..2f70d0da6d 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAPPRE1980_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAPPRE1980_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStripmall_BTAPPRE1980_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_RetailStripmall_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'RetailStripmall',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStripmall-BTAPPRE1980-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_RetailStripmall_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'RetailStripmall', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStripmall-BTAPPRE1980-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAPPRE1980_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAPPRE1980_ElectricityHPElecBackup.rb index 6428530258..88305f5d30 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAPPRE1980_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAPPRE1980_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStripmall_BTAPPRE1980_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_RetailStripmall_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'RetailStripmall',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStripmall-BTAPPRE1980-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_RetailStripmall_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'RetailStripmall', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStripmall-BTAPPRE1980-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAPPRE1980_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAPPRE1980_ElectricityHPGasBackupMixed.rb index 683a1641cb..0bc7baf54b 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAPPRE1980_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAPPRE1980_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStripmall_BTAPPRE1980_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_RetailStripmall_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'RetailStripmall',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStripmall-BTAPPRE1980-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_RetailStripmall_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'RetailStripmall', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStripmall-BTAPPRE1980-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAPPRE1980_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAPPRE1980_NaturalGas.rb index 5ae0563906..fc70d104ac 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAPPRE1980_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAPPRE1980_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStripmall_BTAPPRE1980_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_RetailStripmall_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'RetailStripmall',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStripmall-BTAPPRE1980-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_RetailStripmall_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'RetailStripmall', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStripmall-BTAPPRE1980-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb index 25100c7b9a..3d937cdcac 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStripmall_BTAPPRE1980_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_RetailStripmall_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'RetailStripmall',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStripmall-BTAPPRE1980-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_RetailStripmall_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'RetailStripmall', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStripmall-BTAPPRE1980-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAPPRE1980_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAPPRE1980_NaturalGasHPGasBackup.rb index 8e73142945..c1ae941c3d 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAPPRE1980_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_BTAPPRE1980_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStripmall_BTAPPRE1980_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_RetailStripmall_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'RetailStripmall',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStripmall-BTAPPRE1980-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_RetailStripmall_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'RetailStripmall', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStripmall-BTAPPRE1980-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2011_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2011_Electricity.rb index 40c7561e17..d24535a821 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2011_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2011_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStripmall_NECB2011_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_RetailStripmall_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'RetailStripmall',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStripmall-NECB2011-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_RetailStripmall_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'RetailStripmall', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStripmall-NECB2011-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2011_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2011_ElectricityHPElecBackup.rb index 3f0cfa50bc..9f6d9e66d2 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2011_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2011_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStripmall_NECB2011_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_RetailStripmall_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'RetailStripmall',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStripmall-NECB2011-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_RetailStripmall_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'RetailStripmall', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStripmall-NECB2011-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2011_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2011_ElectricityHPGasBackupMixed.rb index 62a7f86e00..aa078ab156 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2011_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2011_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStripmall_NECB2011_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_RetailStripmall_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'RetailStripmall',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStripmall-NECB2011-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_RetailStripmall_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'RetailStripmall', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStripmall-NECB2011-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2011_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2011_NaturalGas.rb index 7e797510ca..f4008f23f7 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2011_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2011_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStripmall_NECB2011_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_RetailStripmall_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'RetailStripmall',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStripmall-NECB2011-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_RetailStripmall_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'RetailStripmall', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStripmall-NECB2011-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2011_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2011_NaturalGasHPElecBackupMixed.rb index 127b1cb624..fecef9ac4e 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2011_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2011_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStripmall_NECB2011_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_RetailStripmall_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'RetailStripmall',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStripmall-NECB2011-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_RetailStripmall_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'RetailStripmall', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStripmall-NECB2011-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2011_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2011_NaturalGasHPGasBackup.rb index 046eec544f..745c04eb8a 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2011_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2011_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStripmall_NECB2011_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_RetailStripmall_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'RetailStripmall',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStripmall-NECB2011-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_RetailStripmall_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'RetailStripmall', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStripmall-NECB2011-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2015_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2015_Electricity.rb index ba455fc2f5..ba0cfa4a92 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2015_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2015_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStripmall_NECB2015_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_RetailStripmall_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'RetailStripmall',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStripmall-NECB2015-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_RetailStripmall_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'RetailStripmall', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStripmall-NECB2015-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2015_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2015_ElectricityHPElecBackup.rb index 7f6af10ecc..4265540c85 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2015_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2015_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStripmall_NECB2015_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_RetailStripmall_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'RetailStripmall',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStripmall-NECB2015-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_RetailStripmall_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'RetailStripmall', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStripmall-NECB2015-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2015_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2015_ElectricityHPGasBackupMixed.rb index affc2b59eb..66d6e672ad 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2015_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2015_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStripmall_NECB2015_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_RetailStripmall_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'RetailStripmall',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStripmall-NECB2015-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_RetailStripmall_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'RetailStripmall', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStripmall-NECB2015-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2015_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2015_NaturalGas.rb index 2f6d931a98..6716307b84 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2015_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2015_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStripmall_NECB2015_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_RetailStripmall_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'RetailStripmall',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStripmall-NECB2015-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_RetailStripmall_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'RetailStripmall', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStripmall-NECB2015-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2015_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2015_NaturalGasHPElecBackupMixed.rb index 10284026c0..3cdea27595 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2015_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2015_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStripmall_NECB2015_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_RetailStripmall_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'RetailStripmall',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStripmall-NECB2015-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_RetailStripmall_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'RetailStripmall', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStripmall-NECB2015-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2015_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2015_NaturalGasHPGasBackup.rb index 29ffc00e73..b533cf1f61 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2015_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2015_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStripmall_NECB2015_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_RetailStripmall_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'RetailStripmall',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStripmall-NECB2015-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_RetailStripmall_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'RetailStripmall', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStripmall-NECB2015-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2017_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2017_Electricity.rb index 00370d0fd6..7487095c35 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2017_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2017_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStripmall_NECB2017_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_RetailStripmall_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'RetailStripmall',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStripmall-NECB2017-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_RetailStripmall_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'RetailStripmall', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStripmall-NECB2017-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2017_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2017_ElectricityHPElecBackup.rb index b838c85b8a..ffc6245ee5 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2017_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2017_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStripmall_NECB2017_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_RetailStripmall_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'RetailStripmall',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStripmall-NECB2017-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_RetailStripmall_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'RetailStripmall', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStripmall-NECB2017-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2017_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2017_ElectricityHPGasBackupMixed.rb index f81b5b2ef7..1749c5c46d 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2017_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2017_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStripmall_NECB2017_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_RetailStripmall_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'RetailStripmall',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStripmall-NECB2017-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_RetailStripmall_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'RetailStripmall', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStripmall-NECB2017-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2017_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2017_NaturalGas.rb index e74bee22b1..eacba496f5 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2017_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2017_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStripmall_NECB2017_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_RetailStripmall_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'RetailStripmall',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStripmall-NECB2017-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_RetailStripmall_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'RetailStripmall', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStripmall-NECB2017-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2017_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2017_NaturalGasHPElecBackupMixed.rb index e1ef31ef40..b373800848 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2017_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2017_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStripmall_NECB2017_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_RetailStripmall_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'RetailStripmall',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStripmall-NECB2017-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_RetailStripmall_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'RetailStripmall', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStripmall-NECB2017-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2017_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2017_NaturalGasHPGasBackup.rb index 877c3d0ae2..74f0c66ea5 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2017_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2017_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStripmall_NECB2017_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_RetailStripmall_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'RetailStripmall',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStripmall-NECB2017-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_RetailStripmall_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'RetailStripmall', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStripmall-NECB2017-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2020_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2020_Electricity.rb index a47dfaf9b3..6c13039f5a 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2020_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2020_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStripmall_NECB2020_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_RetailStripmall_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'RetailStripmall',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStripmall-NECB2020-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_RetailStripmall_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'RetailStripmall', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStripmall-NECB2020-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2020_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2020_ElectricityHPElecBackup.rb index 166a0bdf95..3931979cdd 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2020_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2020_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStripmall_NECB2020_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_RetailStripmall_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'RetailStripmall',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStripmall-NECB2020-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_RetailStripmall_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'RetailStripmall', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStripmall-NECB2020-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2020_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2020_ElectricityHPGasBackupMixed.rb index 260d95bb6f..bdf19552bb 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2020_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2020_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStripmall_NECB2020_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_RetailStripmall_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'RetailStripmall',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStripmall-NECB2020-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_RetailStripmall_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'RetailStripmall', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStripmall-NECB2020-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2020_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2020_NaturalGas.rb index 0a4b006dc2..5b60774c91 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2020_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2020_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStripmall_NECB2020_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_RetailStripmall_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'RetailStripmall',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStripmall-NECB2020-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_RetailStripmall_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'RetailStripmall', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStripmall-NECB2020-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2020_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2020_NaturalGasHPElecBackupMixed.rb index 0e044d57c3..a9c1458b4a 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2020_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2020_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStripmall_NECB2020_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_RetailStripmall_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'RetailStripmall',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStripmall-NECB2020-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_RetailStripmall_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'RetailStripmall', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStripmall-NECB2020-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2020_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2020_NaturalGasHPGasBackup.rb index 06713580a8..827babb3e3 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2020_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_RetailStripmall_NECB2020_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_RetailStripmall_NECB2020_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_RetailStripmall_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'RetailStripmall',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/RetailStripmall-NECB2020-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_RetailStripmall_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'RetailStripmall', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/RetailStripmall-NECB2020-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAP1980TO2010_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAP1980TO2010_Electricity.rb index d281f8936b..6c2269f3e0 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAP1980TO2010_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAP1980TO2010_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SecondarySchool_BTAP1980TO2010_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_SecondarySchool_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'SecondarySchool',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SecondarySchool-BTAP1980TO2010-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_SecondarySchool_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'SecondarySchool', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SecondarySchool-BTAP1980TO2010-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAP1980TO2010_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAP1980TO2010_ElectricityHPElecBackup.rb index 01ad878f97..1c71cc8bb6 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAP1980TO2010_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAP1980TO2010_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SecondarySchool_BTAP1980TO2010_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_SecondarySchool_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'SecondarySchool',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SecondarySchool-BTAP1980TO2010-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_SecondarySchool_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'SecondarySchool', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SecondarySchool-BTAP1980TO2010-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb index fb71b03a81..66952a83c4 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SecondarySchool_BTAP1980TO2010_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_SecondarySchool_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'SecondarySchool',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SecondarySchool-BTAP1980TO2010-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_SecondarySchool_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'SecondarySchool', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SecondarySchool-BTAP1980TO2010-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAP1980TO2010_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAP1980TO2010_NaturalGas.rb index a7a238f3e8..47de2336e1 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAP1980TO2010_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAP1980TO2010_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SecondarySchool_BTAP1980TO2010_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_SecondarySchool_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'SecondarySchool',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SecondarySchool-BTAP1980TO2010-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_SecondarySchool_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'SecondarySchool', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SecondarySchool-BTAP1980TO2010-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb index 8919a3178e..98a84af407 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SecondarySchool_BTAP1980TO2010_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_SecondarySchool_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'SecondarySchool',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SecondarySchool-BTAP1980TO2010-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_SecondarySchool_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'SecondarySchool', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SecondarySchool-BTAP1980TO2010-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAP1980TO2010_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAP1980TO2010_NaturalGasHPGasBackup.rb index 080d537fd3..2121be220f 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAP1980TO2010_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAP1980TO2010_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SecondarySchool_BTAP1980TO2010_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_SecondarySchool_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'SecondarySchool',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SecondarySchool-BTAP1980TO2010-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_SecondarySchool_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'SecondarySchool', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SecondarySchool-BTAP1980TO2010-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAPPRE1980_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAPPRE1980_Electricity.rb index aac5b986d8..215db3c8a5 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAPPRE1980_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAPPRE1980_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SecondarySchool_BTAPPRE1980_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_SecondarySchool_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'SecondarySchool',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SecondarySchool-BTAPPRE1980-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_SecondarySchool_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'SecondarySchool', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SecondarySchool-BTAPPRE1980-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAPPRE1980_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAPPRE1980_ElectricityHPElecBackup.rb index db528b9885..605ffad11b 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAPPRE1980_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAPPRE1980_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SecondarySchool_BTAPPRE1980_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_SecondarySchool_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'SecondarySchool',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SecondarySchool-BTAPPRE1980-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_SecondarySchool_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'SecondarySchool', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SecondarySchool-BTAPPRE1980-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAPPRE1980_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAPPRE1980_ElectricityHPGasBackupMixed.rb index c33ed07951..0d5a608712 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAPPRE1980_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAPPRE1980_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SecondarySchool_BTAPPRE1980_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_SecondarySchool_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'SecondarySchool',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SecondarySchool-BTAPPRE1980-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_SecondarySchool_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'SecondarySchool', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SecondarySchool-BTAPPRE1980-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAPPRE1980_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAPPRE1980_NaturalGas.rb index c1e7de1e2d..d003dd2b6d 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAPPRE1980_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAPPRE1980_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SecondarySchool_BTAPPRE1980_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_SecondarySchool_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'SecondarySchool',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SecondarySchool-BTAPPRE1980-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_SecondarySchool_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'SecondarySchool', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SecondarySchool-BTAPPRE1980-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb index 9396b92c69..02466f8d29 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SecondarySchool_BTAPPRE1980_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_SecondarySchool_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'SecondarySchool',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SecondarySchool-BTAPPRE1980-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_SecondarySchool_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'SecondarySchool', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SecondarySchool-BTAPPRE1980-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAPPRE1980_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAPPRE1980_NaturalGasHPGasBackup.rb index fc98dbd7b3..e522dcc31e 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAPPRE1980_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_BTAPPRE1980_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SecondarySchool_BTAPPRE1980_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_SecondarySchool_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'SecondarySchool',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SecondarySchool-BTAPPRE1980-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_SecondarySchool_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'SecondarySchool', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SecondarySchool-BTAPPRE1980-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2011_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2011_Electricity.rb index 4216ea656b..c8ad5ccec6 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2011_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2011_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SecondarySchool_NECB2011_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_SecondarySchool_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'SecondarySchool',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SecondarySchool-NECB2011-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_SecondarySchool_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'SecondarySchool', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SecondarySchool-NECB2011-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2011_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2011_ElectricityHPElecBackup.rb index 17a7f2e0cb..90286fde6f 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2011_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2011_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SecondarySchool_NECB2011_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_SecondarySchool_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'SecondarySchool',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SecondarySchool-NECB2011-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_SecondarySchool_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'SecondarySchool', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SecondarySchool-NECB2011-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2011_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2011_ElectricityHPGasBackupMixed.rb index aff8b616a6..14b4f702a1 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2011_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2011_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SecondarySchool_NECB2011_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_SecondarySchool_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'SecondarySchool',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SecondarySchool-NECB2011-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_SecondarySchool_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'SecondarySchool', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SecondarySchool-NECB2011-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2011_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2011_NaturalGas.rb index e308b6d5d6..c167207b33 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2011_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2011_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SecondarySchool_NECB2011_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_SecondarySchool_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'SecondarySchool',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SecondarySchool-NECB2011-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_SecondarySchool_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'SecondarySchool', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SecondarySchool-NECB2011-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2011_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2011_NaturalGasHPElecBackupMixed.rb index 38102e9542..b179bb2ed0 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2011_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2011_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SecondarySchool_NECB2011_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_SecondarySchool_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'SecondarySchool',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SecondarySchool-NECB2011-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_SecondarySchool_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'SecondarySchool', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SecondarySchool-NECB2011-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2011_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2011_NaturalGasHPGasBackup.rb index 21c499cd7e..7443ed8497 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2011_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2011_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SecondarySchool_NECB2011_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_SecondarySchool_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'SecondarySchool',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SecondarySchool-NECB2011-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_SecondarySchool_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'SecondarySchool', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SecondarySchool-NECB2011-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2015_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2015_Electricity.rb index 1afb4988a2..ee46c8df4d 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2015_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2015_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SecondarySchool_NECB2015_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_SecondarySchool_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'SecondarySchool',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SecondarySchool-NECB2015-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_SecondarySchool_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'SecondarySchool', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SecondarySchool-NECB2015-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2015_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2015_ElectricityHPElecBackup.rb index 5d6b4b7fca..d5e8becc02 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2015_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2015_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SecondarySchool_NECB2015_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_SecondarySchool_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'SecondarySchool',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SecondarySchool-NECB2015-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_SecondarySchool_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'SecondarySchool', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SecondarySchool-NECB2015-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2015_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2015_ElectricityHPGasBackupMixed.rb index 3d78d2cbbb..1a212dbbb1 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2015_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2015_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SecondarySchool_NECB2015_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_SecondarySchool_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'SecondarySchool',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SecondarySchool-NECB2015-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_SecondarySchool_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'SecondarySchool', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SecondarySchool-NECB2015-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2015_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2015_NaturalGas.rb index a1f0339428..de3001620a 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2015_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2015_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SecondarySchool_NECB2015_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_SecondarySchool_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'SecondarySchool',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SecondarySchool-NECB2015-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_SecondarySchool_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'SecondarySchool', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SecondarySchool-NECB2015-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2015_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2015_NaturalGasHPElecBackupMixed.rb index 717c12b56a..9143c37e4e 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2015_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2015_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SecondarySchool_NECB2015_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_SecondarySchool_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'SecondarySchool',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SecondarySchool-NECB2015-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_SecondarySchool_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'SecondarySchool', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SecondarySchool-NECB2015-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2015_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2015_NaturalGasHPGasBackup.rb index 9e92d69faa..2b4eca5412 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2015_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2015_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SecondarySchool_NECB2015_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_SecondarySchool_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'SecondarySchool',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SecondarySchool-NECB2015-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_SecondarySchool_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'SecondarySchool', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SecondarySchool-NECB2015-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2017_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2017_Electricity.rb index e1f082ffbc..4847f4dff9 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2017_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2017_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SecondarySchool_NECB2017_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_SecondarySchool_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'SecondarySchool',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SecondarySchool-NECB2017-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_SecondarySchool_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'SecondarySchool', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SecondarySchool-NECB2017-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2017_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2017_ElectricityHPElecBackup.rb index 6d2c48dcfb..bd98affbd0 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2017_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2017_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SecondarySchool_NECB2017_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_SecondarySchool_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'SecondarySchool',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SecondarySchool-NECB2017-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_SecondarySchool_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'SecondarySchool', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SecondarySchool-NECB2017-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2017_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2017_ElectricityHPGasBackupMixed.rb index 2d5f7a229a..65eb8fefab 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2017_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2017_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SecondarySchool_NECB2017_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_SecondarySchool_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'SecondarySchool',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SecondarySchool-NECB2017-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_SecondarySchool_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'SecondarySchool', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SecondarySchool-NECB2017-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2017_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2017_NaturalGas.rb index f86242feb7..a9e5820250 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2017_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2017_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SecondarySchool_NECB2017_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_SecondarySchool_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'SecondarySchool',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SecondarySchool-NECB2017-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_SecondarySchool_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'SecondarySchool', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SecondarySchool-NECB2017-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2017_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2017_NaturalGasHPElecBackupMixed.rb index 4373b52959..3f99ed1755 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2017_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2017_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SecondarySchool_NECB2017_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_SecondarySchool_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'SecondarySchool',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SecondarySchool-NECB2017-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_SecondarySchool_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'SecondarySchool', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SecondarySchool-NECB2017-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2017_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2017_NaturalGasHPGasBackup.rb index b7a429a243..57f8a5e67b 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2017_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2017_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SecondarySchool_NECB2017_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_SecondarySchool_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'SecondarySchool',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SecondarySchool-NECB2017-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_SecondarySchool_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'SecondarySchool', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SecondarySchool-NECB2017-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2020_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2020_Electricity.rb index f159f02d2d..0752654fab 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2020_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2020_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SecondarySchool_NECB2020_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_SecondarySchool_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'SecondarySchool',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SecondarySchool-NECB2020-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_SecondarySchool_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'SecondarySchool', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SecondarySchool-NECB2020-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2020_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2020_ElectricityHPElecBackup.rb index 68783b7a3c..af094fc96d 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2020_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2020_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SecondarySchool_NECB2020_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_SecondarySchool_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'SecondarySchool',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SecondarySchool-NECB2020-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_SecondarySchool_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'SecondarySchool', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SecondarySchool-NECB2020-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2020_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2020_ElectricityHPGasBackupMixed.rb index 4a110c9b1f..632a030e64 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2020_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2020_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SecondarySchool_NECB2020_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_SecondarySchool_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'SecondarySchool',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SecondarySchool-NECB2020-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_SecondarySchool_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'SecondarySchool', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SecondarySchool-NECB2020-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2020_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2020_NaturalGas.rb index 2f2ea8668c..babd4e798f 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2020_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2020_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SecondarySchool_NECB2020_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_SecondarySchool_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'SecondarySchool',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SecondarySchool-NECB2020-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_SecondarySchool_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'SecondarySchool', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SecondarySchool-NECB2020-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2020_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2020_NaturalGasHPElecBackupMixed.rb index b87a87b871..1c1677eb17 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2020_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2020_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SecondarySchool_NECB2020_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_SecondarySchool_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'SecondarySchool',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SecondarySchool-NECB2020-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_SecondarySchool_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'SecondarySchool', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SecondarySchool-NECB2020-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2020_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2020_NaturalGasHPGasBackup.rb index 288d420f97..16a7c971d1 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2020_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SecondarySchool_NECB2020_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SecondarySchool_NECB2020_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_SecondarySchool_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'SecondarySchool',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SecondarySchool-NECB2020-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_SecondarySchool_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'SecondarySchool', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SecondarySchool-NECB2020-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAP1980TO2010_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAP1980TO2010_Electricity.rb index 243c04bac9..1d932bcfe0 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAP1980TO2010_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAP1980TO2010_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallHotel_BTAP1980TO2010_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_SmallHotel_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'SmallHotel',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallHotel-BTAP1980TO2010-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_SmallHotel_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'SmallHotel', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallHotel-BTAP1980TO2010-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAP1980TO2010_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAP1980TO2010_ElectricityHPElecBackup.rb index e9cd957ae7..eb13483dea 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAP1980TO2010_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAP1980TO2010_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallHotel_BTAP1980TO2010_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_SmallHotel_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'SmallHotel',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallHotel-BTAP1980TO2010-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_SmallHotel_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'SmallHotel', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallHotel-BTAP1980TO2010-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb index d246b0490a..7e1865ed01 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallHotel_BTAP1980TO2010_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_SmallHotel_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'SmallHotel',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallHotel-BTAP1980TO2010-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_SmallHotel_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'SmallHotel', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallHotel-BTAP1980TO2010-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAP1980TO2010_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAP1980TO2010_NaturalGas.rb index bf7b7dcc42..e8ebafa86b 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAP1980TO2010_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAP1980TO2010_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallHotel_BTAP1980TO2010_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_SmallHotel_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'SmallHotel',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallHotel-BTAP1980TO2010-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_SmallHotel_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'SmallHotel', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallHotel-BTAP1980TO2010-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb index 422ff36ac3..92a44e4707 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallHotel_BTAP1980TO2010_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_SmallHotel_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'SmallHotel',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallHotel-BTAP1980TO2010-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_SmallHotel_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'SmallHotel', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallHotel-BTAP1980TO2010-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAP1980TO2010_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAP1980TO2010_NaturalGasHPGasBackup.rb index b6a7efca60..b1609786e8 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAP1980TO2010_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAP1980TO2010_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallHotel_BTAP1980TO2010_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_SmallHotel_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'SmallHotel',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallHotel-BTAP1980TO2010-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_SmallHotel_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'SmallHotel', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallHotel-BTAP1980TO2010-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAPPRE1980_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAPPRE1980_Electricity.rb index a98a559043..00acc2bb74 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAPPRE1980_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAPPRE1980_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallHotel_BTAPPRE1980_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_SmallHotel_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'SmallHotel',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallHotel-BTAPPRE1980-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_SmallHotel_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'SmallHotel', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallHotel-BTAPPRE1980-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAPPRE1980_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAPPRE1980_ElectricityHPElecBackup.rb index 112f85bd95..266ee964b2 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAPPRE1980_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAPPRE1980_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallHotel_BTAPPRE1980_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_SmallHotel_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'SmallHotel',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallHotel-BTAPPRE1980-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_SmallHotel_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'SmallHotel', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallHotel-BTAPPRE1980-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAPPRE1980_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAPPRE1980_ElectricityHPGasBackupMixed.rb index 7eb6211310..0c405f2036 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAPPRE1980_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAPPRE1980_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallHotel_BTAPPRE1980_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_SmallHotel_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'SmallHotel',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallHotel-BTAPPRE1980-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_SmallHotel_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'SmallHotel', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallHotel-BTAPPRE1980-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAPPRE1980_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAPPRE1980_NaturalGas.rb index 8f8f2b2f23..e02172c5f6 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAPPRE1980_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAPPRE1980_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallHotel_BTAPPRE1980_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_SmallHotel_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'SmallHotel',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallHotel-BTAPPRE1980-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_SmallHotel_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'SmallHotel', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallHotel-BTAPPRE1980-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb index 370a0338c3..389b49dfcb 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallHotel_BTAPPRE1980_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_SmallHotel_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'SmallHotel',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallHotel-BTAPPRE1980-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_SmallHotel_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'SmallHotel', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallHotel-BTAPPRE1980-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAPPRE1980_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAPPRE1980_NaturalGasHPGasBackup.rb index 1b42f95283..0239d8e53d 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAPPRE1980_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_BTAPPRE1980_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallHotel_BTAPPRE1980_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_SmallHotel_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'SmallHotel',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallHotel-BTAPPRE1980-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_SmallHotel_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'SmallHotel', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallHotel-BTAPPRE1980-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2011_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2011_Electricity.rb index b902083307..95b6844c81 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2011_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2011_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallHotel_NECB2011_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_SmallHotel_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'SmallHotel',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallHotel-NECB2011-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_SmallHotel_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'SmallHotel', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallHotel-NECB2011-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2011_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2011_ElectricityHPElecBackup.rb index f2db6c5679..a90e2ac82b 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2011_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2011_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallHotel_NECB2011_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_SmallHotel_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'SmallHotel',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallHotel-NECB2011-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_SmallHotel_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'SmallHotel', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallHotel-NECB2011-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2011_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2011_ElectricityHPGasBackupMixed.rb index 45ac0cc45e..5a179cf89e 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2011_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2011_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallHotel_NECB2011_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_SmallHotel_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'SmallHotel',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallHotel-NECB2011-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_SmallHotel_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'SmallHotel', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallHotel-NECB2011-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2011_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2011_NaturalGas.rb index 0323b268cd..bfbb7d19eb 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2011_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2011_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallHotel_NECB2011_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_SmallHotel_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'SmallHotel',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallHotel-NECB2011-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_SmallHotel_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'SmallHotel', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallHotel-NECB2011-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2011_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2011_NaturalGasHPElecBackupMixed.rb index 0c64dcbfa7..b7b39c9a7e 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2011_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2011_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallHotel_NECB2011_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_SmallHotel_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'SmallHotel',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallHotel-NECB2011-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_SmallHotel_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'SmallHotel', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallHotel-NECB2011-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2011_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2011_NaturalGasHPGasBackup.rb index 5745428f43..3fd1b81cf7 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2011_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2011_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallHotel_NECB2011_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_SmallHotel_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'SmallHotel',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallHotel-NECB2011-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_SmallHotel_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'SmallHotel', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallHotel-NECB2011-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2015_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2015_Electricity.rb index e8fc73fae8..89d50a790a 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2015_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2015_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallHotel_NECB2015_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_SmallHotel_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'SmallHotel',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallHotel-NECB2015-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_SmallHotel_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'SmallHotel', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallHotel-NECB2015-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2015_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2015_ElectricityHPElecBackup.rb index 43b632882a..9796f1a62b 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2015_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2015_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallHotel_NECB2015_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_SmallHotel_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'SmallHotel',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallHotel-NECB2015-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_SmallHotel_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'SmallHotel', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallHotel-NECB2015-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2015_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2015_ElectricityHPGasBackupMixed.rb index 86be7f8e2e..3d3f981866 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2015_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2015_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallHotel_NECB2015_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_SmallHotel_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'SmallHotel',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallHotel-NECB2015-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_SmallHotel_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'SmallHotel', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallHotel-NECB2015-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2015_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2015_NaturalGas.rb index 9e39da7d2c..62d71075a8 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2015_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2015_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallHotel_NECB2015_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_SmallHotel_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'SmallHotel',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallHotel-NECB2015-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_SmallHotel_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'SmallHotel', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallHotel-NECB2015-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2015_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2015_NaturalGasHPElecBackupMixed.rb index 556bca4baa..cee4e6f5a8 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2015_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2015_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallHotel_NECB2015_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_SmallHotel_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'SmallHotel',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallHotel-NECB2015-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_SmallHotel_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'SmallHotel', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallHotel-NECB2015-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2015_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2015_NaturalGasHPGasBackup.rb index 09bfda7736..0f51299267 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2015_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2015_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallHotel_NECB2015_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_SmallHotel_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'SmallHotel',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallHotel-NECB2015-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_SmallHotel_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'SmallHotel', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallHotel-NECB2015-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2017_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2017_Electricity.rb index 01daa3dacb..6bdda44071 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2017_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2017_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallHotel_NECB2017_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_SmallHotel_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'SmallHotel',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallHotel-NECB2017-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_SmallHotel_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'SmallHotel', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallHotel-NECB2017-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2017_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2017_ElectricityHPElecBackup.rb index a481aaf8dc..e1ff11cde1 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2017_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2017_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallHotel_NECB2017_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_SmallHotel_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'SmallHotel',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallHotel-NECB2017-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_SmallHotel_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'SmallHotel', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallHotel-NECB2017-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2017_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2017_ElectricityHPGasBackupMixed.rb index 434fee0d15..e8177cb38f 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2017_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2017_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallHotel_NECB2017_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_SmallHotel_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'SmallHotel',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallHotel-NECB2017-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_SmallHotel_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'SmallHotel', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallHotel-NECB2017-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2017_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2017_NaturalGas.rb index da0c00b60a..462172ed33 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2017_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2017_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallHotel_NECB2017_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_SmallHotel_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'SmallHotel',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallHotel-NECB2017-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_SmallHotel_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'SmallHotel', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallHotel-NECB2017-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2017_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2017_NaturalGasHPElecBackupMixed.rb index 86cef8ec7a..e3ce072815 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2017_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2017_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallHotel_NECB2017_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_SmallHotel_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'SmallHotel',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallHotel-NECB2017-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_SmallHotel_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'SmallHotel', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallHotel-NECB2017-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2017_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2017_NaturalGasHPGasBackup.rb index e376ad2b82..69a77ee61d 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2017_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2017_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallHotel_NECB2017_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_SmallHotel_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'SmallHotel',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallHotel-NECB2017-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_SmallHotel_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'SmallHotel', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallHotel-NECB2017-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2020_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2020_Electricity.rb index a4a618fe6b..67ec33029b 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2020_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2020_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallHotel_NECB2020_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_SmallHotel_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'SmallHotel',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallHotel-NECB2020-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_SmallHotel_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'SmallHotel', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallHotel-NECB2020-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2020_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2020_ElectricityHPElecBackup.rb index e40dd6c243..d3165e722b 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2020_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2020_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallHotel_NECB2020_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_SmallHotel_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'SmallHotel',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallHotel-NECB2020-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_SmallHotel_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'SmallHotel', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallHotel-NECB2020-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2020_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2020_ElectricityHPGasBackupMixed.rb index 472a9937c1..145a9b33fc 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2020_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2020_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallHotel_NECB2020_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_SmallHotel_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'SmallHotel',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallHotel-NECB2020-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_SmallHotel_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'SmallHotel', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallHotel-NECB2020-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2020_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2020_NaturalGas.rb index 0be4d8cfc7..45265d7df5 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2020_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2020_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallHotel_NECB2020_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_SmallHotel_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'SmallHotel',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallHotel-NECB2020-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_SmallHotel_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'SmallHotel', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallHotel-NECB2020-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2020_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2020_NaturalGasHPElecBackupMixed.rb index 87dd0fa5bc..1d196dc99f 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2020_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2020_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallHotel_NECB2020_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_SmallHotel_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'SmallHotel',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallHotel-NECB2020-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_SmallHotel_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'SmallHotel', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallHotel-NECB2020-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2020_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2020_NaturalGasHPGasBackup.rb index bd79ee693c..79eb61ed0d 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2020_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallHotel_NECB2020_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallHotel_NECB2020_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_SmallHotel_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'SmallHotel',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallHotel-NECB2020-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_SmallHotel_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'SmallHotel', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallHotel-NECB2020-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAP1980TO2010_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAP1980TO2010_Electricity.rb index e66a1a89d3..d29eb5d19e 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAP1980TO2010_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAP1980TO2010_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallOffice_BTAP1980TO2010_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_SmallOffice_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'SmallOffice',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallOffice-BTAP1980TO2010-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_SmallOffice_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'SmallOffice', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallOffice-BTAP1980TO2010-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAP1980TO2010_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAP1980TO2010_ElectricityHPElecBackup.rb index 6cea2d50f4..5f0650b767 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAP1980TO2010_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAP1980TO2010_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallOffice_BTAP1980TO2010_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_SmallOffice_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'SmallOffice',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallOffice-BTAP1980TO2010-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_SmallOffice_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'SmallOffice', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallOffice-BTAP1980TO2010-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb index 2d7589ad67..7c94d18f22 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallOffice_BTAP1980TO2010_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_SmallOffice_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'SmallOffice',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallOffice-BTAP1980TO2010-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_SmallOffice_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'SmallOffice', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallOffice-BTAP1980TO2010-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAP1980TO2010_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAP1980TO2010_NaturalGas.rb index 9dbe062a27..bf3df1ebf8 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAP1980TO2010_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAP1980TO2010_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallOffice_BTAP1980TO2010_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_SmallOffice_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'SmallOffice',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallOffice-BTAP1980TO2010-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_SmallOffice_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'SmallOffice', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallOffice-BTAP1980TO2010-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb index 025663fbae..0e97a496d8 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallOffice_BTAP1980TO2010_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_SmallOffice_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'SmallOffice',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallOffice-BTAP1980TO2010-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_SmallOffice_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'SmallOffice', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallOffice-BTAP1980TO2010-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAP1980TO2010_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAP1980TO2010_NaturalGasHPGasBackup.rb index 1805422bf8..8a70e25148 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAP1980TO2010_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAP1980TO2010_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallOffice_BTAP1980TO2010_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_SmallOffice_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'SmallOffice',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallOffice-BTAP1980TO2010-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_SmallOffice_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'SmallOffice', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallOffice-BTAP1980TO2010-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAPPRE1980_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAPPRE1980_Electricity.rb index 391d5cdc64..4c58edd900 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAPPRE1980_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAPPRE1980_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallOffice_BTAPPRE1980_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_SmallOffice_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'SmallOffice',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallOffice-BTAPPRE1980-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_SmallOffice_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'SmallOffice', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallOffice-BTAPPRE1980-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAPPRE1980_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAPPRE1980_ElectricityHPElecBackup.rb index 7932b1a913..c9ef1efc49 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAPPRE1980_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAPPRE1980_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallOffice_BTAPPRE1980_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_SmallOffice_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'SmallOffice',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallOffice-BTAPPRE1980-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_SmallOffice_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'SmallOffice', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallOffice-BTAPPRE1980-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAPPRE1980_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAPPRE1980_ElectricityHPGasBackupMixed.rb index fe6aece65f..fcbc236738 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAPPRE1980_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAPPRE1980_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallOffice_BTAPPRE1980_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_SmallOffice_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'SmallOffice',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallOffice-BTAPPRE1980-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_SmallOffice_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'SmallOffice', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallOffice-BTAPPRE1980-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAPPRE1980_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAPPRE1980_NaturalGas.rb index 25d5a44e8b..e62f91fe35 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAPPRE1980_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAPPRE1980_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallOffice_BTAPPRE1980_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_SmallOffice_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'SmallOffice',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallOffice-BTAPPRE1980-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_SmallOffice_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'SmallOffice', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallOffice-BTAPPRE1980-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb index 1af96e0c78..cd05543712 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallOffice_BTAPPRE1980_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_SmallOffice_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'SmallOffice',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallOffice-BTAPPRE1980-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_SmallOffice_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'SmallOffice', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallOffice-BTAPPRE1980-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAPPRE1980_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAPPRE1980_NaturalGasHPGasBackup.rb index aecdc02742..c3c7d791fe 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAPPRE1980_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_BTAPPRE1980_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallOffice_BTAPPRE1980_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_SmallOffice_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'SmallOffice',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallOffice-BTAPPRE1980-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_SmallOffice_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'SmallOffice', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallOffice-BTAPPRE1980-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2011_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2011_Electricity.rb index 14cb78e3cd..3169be61bd 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2011_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2011_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallOffice_NECB2011_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_SmallOffice_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'SmallOffice',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallOffice-NECB2011-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_SmallOffice_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'SmallOffice', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallOffice-NECB2011-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2011_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2011_ElectricityHPElecBackup.rb index 485d1266d2..1f21ee0e5d 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2011_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2011_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallOffice_NECB2011_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_SmallOffice_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'SmallOffice',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallOffice-NECB2011-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_SmallOffice_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'SmallOffice', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallOffice-NECB2011-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2011_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2011_ElectricityHPGasBackupMixed.rb index 25224d0dd9..94f92b3740 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2011_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2011_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallOffice_NECB2011_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_SmallOffice_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'SmallOffice',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallOffice-NECB2011-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_SmallOffice_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'SmallOffice', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallOffice-NECB2011-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2011_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2011_NaturalGas.rb index 976999b358..765951d092 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2011_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2011_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallOffice_NECB2011_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_SmallOffice_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'SmallOffice',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallOffice-NECB2011-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_SmallOffice_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'SmallOffice', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallOffice-NECB2011-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2011_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2011_NaturalGasHPElecBackupMixed.rb index 69d19864ba..da3e10be6e 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2011_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2011_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallOffice_NECB2011_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_SmallOffice_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'SmallOffice',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallOffice-NECB2011-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_SmallOffice_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'SmallOffice', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallOffice-NECB2011-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2011_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2011_NaturalGasHPGasBackup.rb index aba7377ae8..44b00a0759 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2011_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2011_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallOffice_NECB2011_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_SmallOffice_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'SmallOffice',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallOffice-NECB2011-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_SmallOffice_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'SmallOffice', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallOffice-NECB2011-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2015_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2015_Electricity.rb index a4d9d0edcd..6301d26fe0 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2015_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2015_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallOffice_NECB2015_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_SmallOffice_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'SmallOffice',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallOffice-NECB2015-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_SmallOffice_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'SmallOffice', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallOffice-NECB2015-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2015_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2015_ElectricityHPElecBackup.rb index aecb668354..a1574f4ddd 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2015_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2015_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallOffice_NECB2015_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_SmallOffice_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'SmallOffice',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallOffice-NECB2015-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_SmallOffice_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'SmallOffice', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallOffice-NECB2015-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2015_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2015_ElectricityHPGasBackupMixed.rb index 1a0599b138..ecce4a8882 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2015_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2015_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallOffice_NECB2015_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_SmallOffice_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'SmallOffice',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallOffice-NECB2015-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_SmallOffice_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'SmallOffice', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallOffice-NECB2015-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2015_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2015_NaturalGas.rb index 16f91991cb..bdd5346e48 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2015_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2015_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallOffice_NECB2015_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_SmallOffice_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'SmallOffice',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallOffice-NECB2015-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_SmallOffice_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'SmallOffice', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallOffice-NECB2015-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2015_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2015_NaturalGasHPElecBackupMixed.rb index 0b998ad312..f13953112d 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2015_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2015_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallOffice_NECB2015_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_SmallOffice_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'SmallOffice',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallOffice-NECB2015-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_SmallOffice_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'SmallOffice', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallOffice-NECB2015-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2015_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2015_NaturalGasHPGasBackup.rb index 962cf4c992..cc4364750d 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2015_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2015_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallOffice_NECB2015_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_SmallOffice_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'SmallOffice',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallOffice-NECB2015-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_SmallOffice_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'SmallOffice', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallOffice-NECB2015-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2017_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2017_Electricity.rb index e04446d7c2..6a55d01936 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2017_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2017_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallOffice_NECB2017_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_SmallOffice_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'SmallOffice',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallOffice-NECB2017-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_SmallOffice_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'SmallOffice', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallOffice-NECB2017-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2017_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2017_ElectricityHPElecBackup.rb index 9e5dc7fe13..517583c6d0 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2017_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2017_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallOffice_NECB2017_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_SmallOffice_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'SmallOffice',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallOffice-NECB2017-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_SmallOffice_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'SmallOffice', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallOffice-NECB2017-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2017_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2017_ElectricityHPGasBackupMixed.rb index 9d8a02327c..2fdd5c7ed3 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2017_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2017_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallOffice_NECB2017_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_SmallOffice_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'SmallOffice',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallOffice-NECB2017-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_SmallOffice_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'SmallOffice', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallOffice-NECB2017-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2017_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2017_NaturalGas.rb index 90c3461d92..49d7b446da 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2017_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2017_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallOffice_NECB2017_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_SmallOffice_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'SmallOffice',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallOffice-NECB2017-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_SmallOffice_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'SmallOffice', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallOffice-NECB2017-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2017_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2017_NaturalGasHPElecBackupMixed.rb index 14ccb5a3b3..ab8ebd2bac 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2017_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2017_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallOffice_NECB2017_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_SmallOffice_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'SmallOffice',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallOffice-NECB2017-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_SmallOffice_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'SmallOffice', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallOffice-NECB2017-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2017_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2017_NaturalGasHPGasBackup.rb index e7c9ebd3f7..5f7ae167b1 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2017_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2017_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallOffice_NECB2017_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_SmallOffice_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'SmallOffice',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallOffice-NECB2017-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_SmallOffice_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'SmallOffice', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallOffice-NECB2017-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2020_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2020_Electricity.rb index 675c45dfdc..7d22b22245 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2020_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2020_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallOffice_NECB2020_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_SmallOffice_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'SmallOffice',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallOffice-NECB2020-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_SmallOffice_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'SmallOffice', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallOffice-NECB2020-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2020_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2020_ElectricityHPElecBackup.rb index 07e35916e1..14bf4702be 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2020_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2020_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallOffice_NECB2020_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_SmallOffice_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'SmallOffice',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallOffice-NECB2020-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_SmallOffice_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'SmallOffice', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallOffice-NECB2020-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2020_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2020_ElectricityHPGasBackupMixed.rb index c7e7de4d88..898e28609b 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2020_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2020_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallOffice_NECB2020_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_SmallOffice_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'SmallOffice',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallOffice-NECB2020-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_SmallOffice_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'SmallOffice', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallOffice-NECB2020-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2020_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2020_NaturalGas.rb index e4c7ca27bc..bfc0c6e18c 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2020_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2020_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallOffice_NECB2020_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_SmallOffice_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'SmallOffice',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallOffice-NECB2020-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_SmallOffice_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'SmallOffice', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallOffice-NECB2020-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2020_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2020_NaturalGasHPElecBackupMixed.rb index 33b40e329b..65e5bafb2f 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2020_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2020_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallOffice_NECB2020_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_SmallOffice_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'SmallOffice',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallOffice-NECB2020-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_SmallOffice_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'SmallOffice', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallOffice-NECB2020-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2020_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2020_NaturalGasHPGasBackup.rb index e024924e1f..0598f55876 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2020_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_SmallOffice_NECB2020_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_SmallOffice_NECB2020_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_SmallOffice_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'SmallOffice',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/SmallOffice-NECB2020-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_SmallOffice_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'SmallOffice', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/SmallOffice-NECB2020-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAP1980TO2010_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAP1980TO2010_Electricity.rb index 053b7be853..dee629892b 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAP1980TO2010_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAP1980TO2010_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Warehouse_BTAP1980TO2010_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_Warehouse_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'Warehouse',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Warehouse-BTAP1980TO2010-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_Warehouse_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'Warehouse', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Warehouse-BTAP1980TO2010-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAP1980TO2010_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAP1980TO2010_ElectricityHPElecBackup.rb index aa81feb3d8..7fa42d5165 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAP1980TO2010_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAP1980TO2010_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Warehouse_BTAP1980TO2010_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_Warehouse_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'Warehouse',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Warehouse-BTAP1980TO2010-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_Warehouse_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'Warehouse', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Warehouse-BTAP1980TO2010-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb index 0997a01641..a64f8a7952 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAP1980TO2010_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Warehouse_BTAP1980TO2010_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_Warehouse_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'Warehouse',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Warehouse-BTAP1980TO2010-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_Warehouse_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'Warehouse', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Warehouse-BTAP1980TO2010-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAP1980TO2010_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAP1980TO2010_NaturalGas.rb index 6e01c95e7b..0eab181109 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAP1980TO2010_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAP1980TO2010_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Warehouse_BTAP1980TO2010_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_Warehouse_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'Warehouse',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Warehouse-BTAP1980TO2010-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_Warehouse_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'Warehouse', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Warehouse-BTAP1980TO2010-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb index e42776e215..48e05a66dd 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAP1980TO2010_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Warehouse_BTAP1980TO2010_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_Warehouse_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'Warehouse',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Warehouse-BTAP1980TO2010-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_Warehouse_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'Warehouse', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Warehouse-BTAP1980TO2010-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAP1980TO2010_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAP1980TO2010_NaturalGasHPGasBackup.rb index cc856ee75d..616374bd3e 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAP1980TO2010_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAP1980TO2010_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Warehouse_BTAP1980TO2010_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAP1980TO2010_Warehouse_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'Warehouse',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAP1980TO2010', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Warehouse-BTAP1980TO2010-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAP1980TO2010_Warehouse_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'Warehouse', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAP1980TO2010', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Warehouse-BTAP1980TO2010-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAPPRE1980_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAPPRE1980_Electricity.rb index c34e91d45b..7a19821999 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAPPRE1980_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAPPRE1980_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Warehouse_BTAPPRE1980_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_Warehouse_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'Warehouse',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Warehouse-BTAPPRE1980-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_Warehouse_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'Warehouse', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Warehouse-BTAPPRE1980-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAPPRE1980_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAPPRE1980_ElectricityHPElecBackup.rb index cd96df82a6..d000337ffd 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAPPRE1980_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAPPRE1980_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Warehouse_BTAPPRE1980_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_Warehouse_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'Warehouse',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Warehouse-BTAPPRE1980-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_Warehouse_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'Warehouse', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Warehouse-BTAPPRE1980-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAPPRE1980_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAPPRE1980_ElectricityHPGasBackupMixed.rb index d23c4ece27..0e6aaf0129 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAPPRE1980_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAPPRE1980_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Warehouse_BTAPPRE1980_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_Warehouse_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'Warehouse',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Warehouse-BTAPPRE1980-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_Warehouse_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'Warehouse', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Warehouse-BTAPPRE1980-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAPPRE1980_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAPPRE1980_NaturalGas.rb index c74aaef31d..4011663abf 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAPPRE1980_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAPPRE1980_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Warehouse_BTAPPRE1980_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_Warehouse_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'Warehouse',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Warehouse-BTAPPRE1980-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_Warehouse_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'Warehouse', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Warehouse-BTAPPRE1980-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb index 340b398c78..fc3ead96f4 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAPPRE1980_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Warehouse_BTAPPRE1980_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_Warehouse_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'Warehouse',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Warehouse-BTAPPRE1980-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_Warehouse_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'Warehouse', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Warehouse-BTAPPRE1980-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAPPRE1980_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAPPRE1980_NaturalGasHPGasBackup.rb index dbb6949790..4dd1240e96 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAPPRE1980_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_BTAPPRE1980_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Warehouse_BTAPPRE1980_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_BTAPPRE1980_Warehouse_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'Warehouse',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'BTAPPRE1980', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Warehouse-BTAPPRE1980-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_BTAPPRE1980_Warehouse_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'Warehouse', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'BTAPPRE1980', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Warehouse-BTAPPRE1980-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2011_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2011_Electricity.rb index 02b8f40334..229cc6c41b 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2011_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2011_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Warehouse_NECB2011_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_Warehouse_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'Warehouse',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Warehouse-NECB2011-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_Warehouse_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'Warehouse', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Warehouse-NECB2011-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2011_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2011_ElectricityHPElecBackup.rb index ed44358809..113b0b2782 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2011_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2011_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Warehouse_NECB2011_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_Warehouse_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'Warehouse',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Warehouse-NECB2011-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_Warehouse_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'Warehouse', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Warehouse-NECB2011-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2011_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2011_ElectricityHPGasBackupMixed.rb index 47ba2f23dc..17b979e4db 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2011_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2011_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Warehouse_NECB2011_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_Warehouse_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'Warehouse',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Warehouse-NECB2011-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_Warehouse_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'Warehouse', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Warehouse-NECB2011-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2011_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2011_NaturalGas.rb index 38a9d5a544..2d0c6d2a03 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2011_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2011_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Warehouse_NECB2011_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_Warehouse_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'Warehouse',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Warehouse-NECB2011-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_Warehouse_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'Warehouse', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Warehouse-NECB2011-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2011_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2011_NaturalGasHPElecBackupMixed.rb index 938cc9f485..d21fb4e69a 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2011_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2011_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Warehouse_NECB2011_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_Warehouse_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'Warehouse',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Warehouse-NECB2011-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_Warehouse_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'Warehouse', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Warehouse-NECB2011-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2011_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2011_NaturalGasHPGasBackup.rb index fb9b2188c5..abcf415048 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2011_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2011_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Warehouse_NECB2011_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2011_Warehouse_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'Warehouse',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2011', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Warehouse-NECB2011-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2011_Warehouse_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'Warehouse', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2011', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Warehouse-NECB2011-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2015_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2015_Electricity.rb index 785da9b6ea..4a0bcac3f7 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2015_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2015_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Warehouse_NECB2015_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_Warehouse_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'Warehouse',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Warehouse-NECB2015-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_Warehouse_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'Warehouse', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Warehouse-NECB2015-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2015_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2015_ElectricityHPElecBackup.rb index 8da09eb0c5..5146387699 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2015_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2015_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Warehouse_NECB2015_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_Warehouse_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'Warehouse',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Warehouse-NECB2015-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_Warehouse_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'Warehouse', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Warehouse-NECB2015-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2015_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2015_ElectricityHPGasBackupMixed.rb index f656ace5ce..48fcdd9f25 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2015_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2015_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Warehouse_NECB2015_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_Warehouse_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'Warehouse',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Warehouse-NECB2015-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_Warehouse_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'Warehouse', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Warehouse-NECB2015-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2015_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2015_NaturalGas.rb index 0c9a41c88e..774c014726 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2015_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2015_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Warehouse_NECB2015_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_Warehouse_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'Warehouse',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Warehouse-NECB2015-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_Warehouse_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'Warehouse', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Warehouse-NECB2015-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2015_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2015_NaturalGasHPElecBackupMixed.rb index 4131fe1a63..1dab7925c8 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2015_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2015_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Warehouse_NECB2015_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_Warehouse_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'Warehouse',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Warehouse-NECB2015-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_Warehouse_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'Warehouse', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Warehouse-NECB2015-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2015_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2015_NaturalGasHPGasBackup.rb index 19bd04949f..6fec9f6ab4 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2015_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2015_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Warehouse_NECB2015_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2015_Warehouse_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'Warehouse',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2015', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Warehouse-NECB2015-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2015_Warehouse_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'Warehouse', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2015', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Warehouse-NECB2015-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2017_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2017_Electricity.rb index 5c5b5210f7..98ab36932e 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2017_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2017_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Warehouse_NECB2017_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_Warehouse_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'Warehouse',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Warehouse-NECB2017-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_Warehouse_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'Warehouse', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Warehouse-NECB2017-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2017_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2017_ElectricityHPElecBackup.rb index df021c9fdb..9e0baa8420 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2017_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2017_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Warehouse_NECB2017_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_Warehouse_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'Warehouse',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Warehouse-NECB2017-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_Warehouse_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'Warehouse', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Warehouse-NECB2017-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2017_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2017_ElectricityHPGasBackupMixed.rb index bc33b6d760..52d08240b2 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2017_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2017_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Warehouse_NECB2017_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_Warehouse_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'Warehouse',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Warehouse-NECB2017-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_Warehouse_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'Warehouse', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Warehouse-NECB2017-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2017_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2017_NaturalGas.rb index 6ff101aab9..18e5f0d3c8 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2017_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2017_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Warehouse_NECB2017_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_Warehouse_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'Warehouse',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Warehouse-NECB2017-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_Warehouse_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'Warehouse', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Warehouse-NECB2017-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2017_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2017_NaturalGasHPElecBackupMixed.rb index 964728cd24..d0073815ee 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2017_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2017_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Warehouse_NECB2017_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_Warehouse_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'Warehouse',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Warehouse-NECB2017-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_Warehouse_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'Warehouse', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Warehouse-NECB2017-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2017_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2017_NaturalGasHPGasBackup.rb index 6375d9ba45..a64efad7bf 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2017_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2017_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Warehouse_NECB2017_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2017_Warehouse_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'Warehouse',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2017', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Warehouse-NECB2017-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2017_Warehouse_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'Warehouse', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2017', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Warehouse-NECB2017-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2020_Electricity.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2020_Electricity.rb index 00eeb52736..0f578ac173 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2020_Electricity.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2020_Electricity.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Warehouse_NECB2020_Electricity < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_Warehouse_regression_Electricity() -result, diff = create_model_and_regression_test(building_type: 'Warehouse',primary_heating_fuel: 'Electricity', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Warehouse-NECB2020-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_Warehouse_regression_Electricity() + result, diff = create_model_and_regression_test( + building_type: 'Warehouse', + primary_heating_fuel: 'Electricity', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Warehouse-NECB2020-Electricity_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2020_ElectricityHPElecBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2020_ElectricityHPElecBackup.rb index 97e761d4d2..0308388a7b 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2020_ElectricityHPElecBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2020_ElectricityHPElecBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Warehouse_NECB2020_ElectricityHPElecBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_Warehouse_regression_ElectricityHPElecBackup() -result, diff = create_model_and_regression_test(building_type: 'Warehouse',primary_heating_fuel: 'ElectricityHPElecBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Warehouse-NECB2020-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_Warehouse_regression_ElectricityHPElecBackup() + result, diff = create_model_and_regression_test( + building_type: 'Warehouse', + primary_heating_fuel: 'ElectricityHPElecBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Warehouse-NECB2020-ElectricityHPElecBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2020_ElectricityHPGasBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2020_ElectricityHPGasBackupMixed.rb index 15e53d0d08..53f0b0376e 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2020_ElectricityHPGasBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2020_ElectricityHPGasBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Warehouse_NECB2020_ElectricityHPGasBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_Warehouse_regression_ElectricityHPGasBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'Warehouse',primary_heating_fuel: 'ElectricityHPGasBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Warehouse-NECB2020-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_Warehouse_regression_ElectricityHPGasBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'Warehouse', + primary_heating_fuel: 'ElectricityHPGasBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Warehouse-NECB2020-ElectricityHPGasBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2020_NaturalGas.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2020_NaturalGas.rb index 442c2a6a58..23258a7624 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2020_NaturalGas.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2020_NaturalGas.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Warehouse_NECB2020_NaturalGas < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_Warehouse_regression_NaturalGas() -result, diff = create_model_and_regression_test(building_type: 'Warehouse',primary_heating_fuel: 'NaturalGas', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Warehouse-NECB2020-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_Warehouse_regression_NaturalGas() + result, diff = create_model_and_regression_test( + building_type: 'Warehouse', + primary_heating_fuel: 'NaturalGas', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Warehouse-NECB2020-NaturalGas_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2020_NaturalGasHPElecBackupMixed.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2020_NaturalGasHPElecBackupMixed.rb index 6bd1aee252..7d98612294 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2020_NaturalGasHPElecBackupMixed.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2020_NaturalGasHPElecBackupMixed.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Warehouse_NECB2020_NaturalGasHPElecBackupMixed < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_Warehouse_regression_NaturalGasHPElecBackupMixed() -result, diff = create_model_and_regression_test(building_type: 'Warehouse',primary_heating_fuel: 'NaturalGasHPElecBackupMixed', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Warehouse-NECB2020-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_Warehouse_regression_NaturalGasHPElecBackupMixed() + result, diff = create_model_and_regression_test( + building_type: 'Warehouse', + primary_heating_fuel: 'NaturalGasHPElecBackupMixed', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Warehouse-NECB2020-NaturalGasHPElecBackupMixed_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file diff --git a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2020_NaturalGasHPGasBackup.rb b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2020_NaturalGasHPGasBackup.rb index 880f52fe7e..cb7c4c269d 100644 --- a/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2020_NaturalGasHPGasBackup.rb +++ b/test/necb/building_regression_tests/tests/test_necb_bldg_Warehouse_NECB2020_NaturalGasHPGasBackup.rb @@ -1,23 +1,29 @@ require_relative '../../../helpers/minitest_helper' -require_relative '../../../helpers/create_doe_prototype_helper' require_relative '../../../helpers/compare_models_helper' require_relative '../resources/regression_helper' class Test_Warehouse_NECB2020_NaturalGasHPGasBackup < NECBRegressionHelper -def setup() -super() -end -def test_NECB2020_Warehouse_regression_NaturalGasHPGasBackup() -result, diff = create_model_and_regression_test(building_type: 'Warehouse',primary_heating_fuel: 'NaturalGasHPGasBackup', epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw',template: 'NECB2020', run_simulation: false) -if result == false -puts "JSON terse listing of diff-errors." -puts diff -puts "Pretty listing of diff-errors for readability." -puts JSON.pretty_generate( diff ) -puts "You can find the saved json diff file here test/necb/regression_models/Warehouse-NECB2020-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" -puts "outputing errors here. " -puts diff["diffs-errors"] if result == false -end -assert(result, diff) -end + def setup() + super() + end + + def test_NECB2020_Warehouse_regression_NaturalGasHPGasBackup() + result, diff = create_model_and_regression_test( + building_type: 'Warehouse', + primary_heating_fuel: 'NaturalGasHPGasBackup', + epw_file: 'CAN_AB_Calgary.Intl.AP.718770_CWEC2020.epw', + template: 'NECB2020', + run_simulation: false + ) + if result == false + puts "JSON terse listing of diff-errors." + puts diff + puts "Pretty listing of diff-errors for readability." + puts JSON.pretty_generate( diff ) + puts "You can find the saved json diff file here test/necb/building_regression_tests/expected_results/Warehouse-NECB2020-NaturalGasHPGasBackup_CAN_AB_Calgary.Intl.AP.718770_CWEC2020_diffs.json" + puts "outputing errors here. " + puts diff["diffs-errors"] if result == false + end + assert(result, diff) + end end \ No newline at end of file