Sha256: 03f063b81be20ec8b6ae850a7b856e8dc65158072de9742215243c1cea097b4b

Contents?: true

Size: 688 Bytes

Versions: 2

Compression:

Stored size: 688 Bytes

Contents

#! /usr/bin/ruby
# encoding: utf-8

# gem 'minitest', '=4.7.4' # try uncommenting this line if problems appear
require 'minitest/autorun'
require_relative '../lib/y_petri' # tested component itself
# require 'y_petri'
# require 'sy'

# Unit tests for the YPetri module.
# 
describe YPetri do
  it "should have basic classes" do
    [ :Place, :Transition, :Net, :Simulation, :World, :Agent ]
      .each { |ß| YPetri.const_get( ß ).must_be_kind_of Module }
  end
end

# Run all other unit tests.
# 
require_relative 'place_test'
require_relative 'transition_test'
require_relative 'net_test'
require_relative 'simulation_test'
require_relative 'world_test'
require_relative 'agent_test'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
y_petri-2.2.1 test/y_petri_test.rb
y_petri-2.2.0 test/y_petri_test.rb