name test classes correctly

This commit is contained in:
Gwenhael Le Moine 2021-11-23 13:00:42 +01:00
parent fe799845aa
commit 4ec3211b61
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
4 changed files with 5 additions and 5 deletions

View file

@ -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 }],

View file

@ -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 )

View file

@ -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 }]

View file

@ -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( [] )