#include "airplane.h"
#include "checkit.h"

int main(void)
{
    Passenger p;
    Passenger seatMap[SEATS_PER_ROW][ROWS];

    strcpy(p.firstName, "John");
    strcpy(p.lastName, "Jones");
    p.phone = 5551212;
    p.fare = 435.25;
    p.weight = 140;


    /* test addPassenger */
    initializeSeatMap(seatMap);
    checkit_string("", seatMap[3][15].firstName);
    checkit_string("", seatMap[3][15].lastName);
    checkit_int(0, seatMap[3][15].phone);
    checkit_double(0.0, seatMap[3][15].fare);
    checkit_int(0, seatMap[3][15].weight);

    /* test addPassenger */
    addPassenger(p, seatMap, 3, 15);
    checkit_string(p.firstName, seatMap[3][15].firstName);
    checkit_string(p.lastName, seatMap[3][15].lastName);
    checkit_int(p.phone, seatMap[3][15].phone);
    checkit_double(p.fare, seatMap[3][15].fare);
    checkit_int(p.weight, seatMap[3][15].weight);

    return 0;
}