text: #include <stdio.h>
  #include <assert.h>
  #include "ColorCode_for_Telecommunications.h"
  
  ColorPair GetColorFromPairNumber(int pairNumber) {
      ColorPair colorPair;
      int zeroBasedPairNumber = pairNumber - 1;
      colorPair.majorColor = 
          (enum MajorColor)(zeroBasedPairNumber / numberOfMinorColors);
      colorPair.minorColor =
          (enum MinorColor)(zeroBasedPairNumber % numberOfMinorColors);
      return colorPair;
  }
  
  void ColorPairToString(const ColorPair* colorPair, char* buffer)
  {
      sprintf(buffer, "%s %s", 
              MajorColorNames[colorPair->majorColor], 
              MinorColorNames[colorPair->minorColor]);
  }
  
  void testNumberToPair(int pairNumber, enum MajorColor expectedMajor, enum MinorColor expectedMinor)
  {
      ColorPair colorPair = GetColorFromPairNumber(pairNumber);
      char colorPairNames[MAX_COLORPAIR_NAME_CHARS];
      ColorPairToString(&colorPair, colorPairNames);
      printf("Got pair %s\n", colorPairNames);
      assert(colorPair.majorColor == expectedMajor);
      assert(colorPair.minorColor == expectedMinor);
  }
  