From 4ec3211b6145e9465dda3613812330e383d03eaa Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Tue, 23 Nov 2021 13:00:42 +0100 Subject: [PATCH] name test classes correctly --- spec/language_operations_spec.rb | 4 ++-- spec/language_program_spec.rb | 2 +- spec/language_stack_spec.rb | 2 +- spec/language_time-date_spec.rb | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/language_operations_spec.rb b/spec/language_operations_spec.rb index 5a19521..562db44 100644 --- a/spec/language_operations_spec.rb +++ b/spec/language_operations_spec.rb @@ -5,8 +5,8 @@ require 'test/unit' require_relative '../lib/core' -class TestParser < Test::Unit::TestCase - def test_plus +class TesttLanguageOperations < Test::Unit::TestCase + def test_add stack = Rpn::Core::Operations.add [{ value: 1, type: :numeric }, { value: 2, type: :numeric }] assert_equal [{ value: 3, type: :numeric }], diff --git a/spec/language_program_spec.rb b/spec/language_program_spec.rb index d1e8276..d9522ea 100644 --- a/spec/language_program_spec.rb +++ b/spec/language_program_spec.rb @@ -8,7 +8,7 @@ require_relative '../lib/dictionary' require_relative '../lib/parser' require_relative '../lib/runner' -class TestParser < Test::Unit::TestCase +class TestLanguageProgram < Test::Unit::TestCase def test_eval stack = Rpn::Core::Program.eval( [{ value: '« 2 dup * dup »', type: :program }], Rpn::Dictionary.new ) diff --git a/spec/language_stack_spec.rb b/spec/language_stack_spec.rb index d5ff30e..c5caf89 100644 --- a/spec/language_stack_spec.rb +++ b/spec/language_stack_spec.rb @@ -5,7 +5,7 @@ require 'test/unit' require_relative '../lib/core' -class TestParser < Test::Unit::TestCase +class TestLanguageStack < Test::Unit::TestCase def test_swap stack = Rpn::Core::Stack.swap [{ value: 1, type: :numeric }, { value: 2, type: :numeric }] diff --git a/spec/language_time-date_spec.rb b/spec/language_time-date_spec.rb index e0401f5..a0df7d2 100644 --- a/spec/language_time-date_spec.rb +++ b/spec/language_time-date_spec.rb @@ -5,7 +5,7 @@ require 'test/unit' require_relative '../lib/core' -class TestParser < Test::Unit::TestCase +class TestLanguageTimeDate < Test::Unit::TestCase def test_time now = Time.now.to_s stack = Rpn::Core::TimeDate.time( [] )