#!/usr/bin/ruby -w
# Encoding: UTF-8
# frozen_string_literal: true
# =========================================================================== #
# require 'new_colours/test/testing_256_colours_support.rb'
# =========================================================================== #
require 'colours/module_256_colours/module_256_colours.rb'
require 'colours/autogenerated/256_colours_instance_methods.rb'
require 'colours/autogenerated/256_colours_methods.rb'

alias e puts

e 'Now testing 256 colours support.'

# =========================================================================== #
# === test_256_colours_support
#
# This method is used for testing various aspects of the 256-submodule.
# =========================================================================== #
def test_256_colours_support
  Colours.display_this_256_colour(0) { :newline }
  Colours.display_this_256_colour(1) { :newline }
  Colours.display_this_256_colour(2) { :newline }
  Colours.display_this_256_colour(3) { :newline }
  Colours.display_this_256_colour(155) { :newline }
  Colours.display_this_256_colour(rand(255+1)) { :newline }
  e
  Colours.show_all_256_colours { :newline }
  e
  include ::Colours::Module256Colours
  e green('This should be in green.')
  e
  e aquamarine3('This should be in aquamarine3.')
  e
end

test_256_colours_support
# test_256_colours_support