File: youplot_test.rb

package info (click to toggle)
youplot 0.4.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 404 kB
  • sloc: ruby: 1,325; makefile: 4
file content (21 lines) | stat: -rw-r--r-- 528 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# frozen_string_literal: true

require_relative 'test_helper'

class YouPlotTest < Test::Unit::TestCase
  def teardown
    YouPlot.run_as_executable = false
  end

  test :it_has_a_version_number do
    assert_kind_of String, ::YouPlot::VERSION
  end

  test :run_as_executable do
    assert_equal false, YouPlot.run_as_executable
    assert_equal false, YouPlot.run_as_executable?
    YouPlot.run_as_executable = true
    assert_equal true, YouPlot.run_as_executable
    assert_equal true, YouPlot.run_as_executable?
  end
end