From f4f7267ec78c4a2f87ffac4b2a9ebb7128b2847d Mon Sep 17 00:00:00 2001 From: kojix2 <2xijok@gmail.com> Date: Thu, 21 Jan 2021 20:50:25 +0900 Subject: [PATCH] Add unicode_plot constant tests --- test/unicode_plot_test.rb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test/unicode_plot_test.rb diff --git a/test/unicode_plot_test.rb b/test/unicode_plot_test.rb new file mode 100644 index 0000000..88c3b04 --- /dev/null +++ b/test/unicode_plot_test.rb @@ -0,0 +1,20 @@ +# frozen_string_literal: true + +require_relative 'test_helper' +require 'unicode_plot' + +# Check the UnicodePlot constants that YouPlot depends on. +# Prepare for UnicodePlot version upgrades. +class UnicodePlotTest < Test::Unit::TestCase + test 'VERSION' do + assert UnicodePlot::VERSION + end + + test 'BORDER_MAP' do + assert_instance_of Hash, UnicodePlot::BORDER_MAP + end + + test 'PREDEFINED_TRANSFORM_FUNCTIONS' do + assert_instance_of Hash, UnicodePlot::ValueTransformer::PREDEFINED_TRANSFORM_FUNCTIONS + end +end \ No newline at end of file