Changeset 212 in tmcsimulator for branches/FEPSimulator


Ignore:
Timestamp:
11/02/2017 01:42:45 PM (9 years ago)
Author:
jtorres
Message:

branches/FEPSimulator/tests/HighwaysParserTest.cpp: Unit test for HighwaysParser?.cpp. HighwaysTest?.java: now passing toXML(), added test for toCondensedFormat() method. LoadHighwaysTest?.java: passing. LoadSadDotsTest?.java: conformed to changes, not passing. Highway.java/Highways.java: converted class attributes to List instead of ArrayList?. Highways.java: corrected toCondensedFormat() method comments and added comments throughout file.

Location:
branches/FEPSimulator
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/FEPSimulator/nbproject/private/private.xml

    r209 r212  
    1515            <file>file:/Users/jtorres/tmcsimulator/branches/FEPSimulator/network.h</file> 
    1616            <file>file:/Users/jtorres/tmcsimulator/branches/FEPSimulator/Makefile</file> 
     17            <file>file:/Users/jtorres/tmcsimulator/branches/FEPSimulator/tests/HighwaysParserTest.cpp</file> 
    1718        </group> 
    1819    </open-files> 
  • branches/FEPSimulator/tests/HighwaysParserTest.cpp

    r209 r212  
    154154    } 
    155155     
     156    // test loops 
    156157    vector<LOOP *> loopsOne = stations.at(0)->loops; 
    157  
     158     
     159    // test loopIDS 
    158160    long expectedLoopIDS[8] = { 1210832, 1210833, 1210834, 1210835,  
    159161            1210836, 1210837, 1210838, 1210839 }; 
     
    170172    } 
    171173     
     174    // test loop occ 
    172175    float expectedOCC[8] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 }; 
    173176    float actualOCC[8] = { loopsOne.at(0)->occ, loopsOne.at(1)->occ,  
     
    182185    } 
    183186     
     187    // test loop locations 
    184188    char * expectedLocs[8] = {"ML_1", "ML_2", "ML_3", "ML_4", "PASSAGE", "DEMAND", 
    185189            "QUEUE", "RAMP_OFF"}; 
Note: See TracChangeset for help on using the changeset viewer.