/*----
  signature: main: void -> int
  purpose: testing program for the function get_nums

  note: using function print_nums to make the tests easier! 8-)

  so, compile using:
      g++ get_nums_test.cpp get_nums.cpp print_nums.cpp -o get_nums_test

  by: Sharon Tuttle
  last modified: 2022-09-14
----*/

#include <cstdlib>
#include <iostream>
#include <string>
#include <cmath>
#include "get_nums.h"
#include "print_nums.h"
using namespace std;

int main()
{
    cout << boolalpha;

    cout << "*** testing get_nums ***" << endl;

    // test 1

    int worm_weights[3];

    cout << "Please enter 10, 20, 30 when prompted: " << endl;
    get_nums(worm_weights, 3);

    cout << "worm_weights should now contain 10, 20, 30: " << endl;
    print_nums(worm_weights, 3);

    // test 2

    int name_lengths[4];

    cout << "Please enter 10, 5, 13, 8 when prompted: " << endl;
    get_nums(name_lengths, 4);

    cout << "name_lengths should now contain 10, 5, 13, 8: " << endl;
    print_nums(name_lengths, 4);

    return EXIT_SUCCESS;
}