Skip to content

Commit

Permalink
update name of MiniTest::Test
Browse files Browse the repository at this point in the history
  • Loading branch information
jhellerstein committed Sep 1, 2020
1 parent 9b665b9 commit bc1b133
Show file tree
Hide file tree
Showing 31 changed files with 93 additions and 93 deletions.
10 changes: 5 additions & 5 deletions test/tc_aggs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ class BooleanAggs
end
end

class TestAggs < MiniTest::Unit::TestCase
class TestAggs < Minitest::Test
def test_paths
program = ShortestPaths.new
program.tick
Expand Down Expand Up @@ -485,7 +485,7 @@ def test_vote_accum
end
end

class TestReduce < MiniTest::Unit::TestCase
class TestReduce < Minitest::Test
class ReduceTypeError
include Bud

Expand Down Expand Up @@ -584,7 +584,7 @@ class AggDupInputs
end
end

class AggDupElimTests < MiniTest::Unit::TestCase
class AggDupElimTests < Minitest::Test
# Issue #278
def test_join_rescan
i = AggJoinRescan.new
Expand Down Expand Up @@ -653,7 +653,7 @@ class TestArgaggRescan
end
end

class ArgaggRescanTest < MiniTest::Unit::TestCase
class ArgaggRescanTest < Minitest::Test
def test_argagg_rescan
i = TestArgaggRescan.new
i.heartbeat <+ [["a", "b"]]
Expand Down Expand Up @@ -685,7 +685,7 @@ class TestAccumPair
end
end

class AccumPairTest < MiniTest::Unit::TestCase
class AccumPairTest < Minitest::Test
def test_accum_pair
i = TestAccumPair.new
i.in_t <+ [[9, 3, 4], [9, 4, 3]]
Expand Down
2 changes: 1 addition & 1 deletion test/tc_attr_rewrite.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require './test_common'

class TestCols < MiniTest::Unit::TestCase
class TestCols < Minitest::Test
class SimpleCols
include Bud
state do
Expand Down
2 changes: 1 addition & 1 deletion test/tc_callback.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class CallbackWithChannel
end
end

class CallbackTest < MiniTest::Unit::TestCase
class CallbackTest < Minitest::Test
class Counter
attr_reader :cnt

Expand Down
16 changes: 8 additions & 8 deletions test/tc_channel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class TickleCount
end
end

class TestTickle < MiniTest::Unit::TestCase
class TestTickle < Minitest::Test
def test_tickle_run_bg
c = TickleCount.new

Expand Down Expand Up @@ -100,7 +100,7 @@ class RingMember
end
end

class TestRing < MiniTest::Unit::TestCase
class TestRing < Minitest::Test
RING_SIZE = 10

def test_basic_ring
Expand Down Expand Up @@ -178,7 +178,7 @@ class PayloadForDefaultChannel
end
end

class TestPayloads < MiniTest::Unit::TestCase
class TestPayloads < Minitest::Test
def test_channel_with_key
p1 = ChannelWithKey.new
p2 = ChannelWithKey.new
Expand Down Expand Up @@ -255,7 +255,7 @@ class ChannelAddrInVal
end
end

class TestChannelAddrInVal < MiniTest::Unit::TestCase
class TestChannelAddrInVal < Minitest::Test
def test_addr_in_val
p1 = ChannelAddrInVal.new
p2 = ChannelAddrInVal.new
Expand Down Expand Up @@ -306,7 +306,7 @@ class ChannelBootstrap
end
end

class TestChannelBootstrap < MiniTest::Unit::TestCase
class TestChannelBootstrap < Minitest::Test
def test_bootstrap
c = ChannelBootstrap.new
q = Queue.new
Expand Down Expand Up @@ -346,7 +346,7 @@ class ChannelWithMultiLocSpecs
end
end

class LocSpecTests < MiniTest::Unit::TestCase
class LocSpecTests < Minitest::Test
def test_missing_ls
assert_raises(Bud::Error) { ChannelWithoutLocSpec.new }
end
Expand Down Expand Up @@ -391,7 +391,7 @@ class SimpleLoopback
end
end

class LoopbackTests < MiniTest::Unit::TestCase
class LoopbackTests < Minitest::Test
def test_loopback_payload
b = LoopbackPayload.new
q = Queue.new
Expand Down Expand Up @@ -450,7 +450,7 @@ class SimpleAgent
end
end

class TestChannelFilter < MiniTest::Unit::TestCase
class TestChannelFilter < Minitest::Test
def test_filter_drop
f = lambda do |tbl_name, tups|
return [tups, []] unless tbl_name == :chn
Expand Down
16 changes: 8 additions & 8 deletions test/tc_collections.rb
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ class StructArrayConcat
end
end

class TestCollections < MiniTest::Unit::TestCase
class TestCollections < Minitest::Test
def test_simple_deduction
program = BabyBud.new
program.tick
Expand Down Expand Up @@ -649,7 +649,7 @@ def test_pad_missing_field
end
end

class TestUpsert < MiniTest::Unit::TestCase
class TestUpsert < Minitest::Test
class UpsertTest
include Bud
state do
Expand Down Expand Up @@ -681,7 +681,7 @@ def test_upsert
end
end

class TestTransitivity < MiniTest::Unit::TestCase
class TestTransitivity < Minitest::Test
class TransitivityTest
include Bud
state do
Expand Down Expand Up @@ -715,7 +715,7 @@ def test_instant_merge_outside_bud
end
end

class TestCollExpr < MiniTest::Unit::TestCase
class TestCollExpr < Minitest::Test
class CollExprTest
include Bud
state do
Expand All @@ -734,7 +734,7 @@ def test_coll_expr
end
end

class TestConstants < MiniTest::Unit::TestCase
class TestConstants < Minitest::Test
class StrOut
include Bud
state { table :his}
Expand All @@ -750,7 +750,7 @@ def test_str_out
end
end

class ScratchTickDeltas < MiniTest::Unit::TestCase
class ScratchTickDeltas < Minitest::Test
# issue 281
class AccumDeltasInScratch
include Bud
Expand Down Expand Up @@ -788,7 +788,7 @@ def test_scratch_accum_tick_deltas
end
end

class TestEachWithIndex < MiniTest::Unit::TestCase
class TestEachWithIndex < Minitest::Test
class UseEachWithIndex
include Bud

Expand Down Expand Up @@ -846,7 +846,7 @@ def test_each_with_index
end
end

class TestBudStruct < MiniTest::Unit::TestCase
class TestBudStruct < Minitest::Test
MyStruct = Bud::TupleStruct.new(:x, :y)

def test_struct_hashing
Expand Down
8 changes: 4 additions & 4 deletions test/tc_dbm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def rm_bud_dir
FileUtils.rm_r(DBM_BUD_DIR)
end

class TestDbm < MiniTest::Unit::TestCase
class TestDbm < Minitest::Test
def setup
setup_bud
@t = make_bud(true)
Expand Down Expand Up @@ -250,7 +250,7 @@ class DbmNest
end
end

class TestNestedDbm < MiniTest::Unit::TestCase
class TestNestedDbm < Minitest::Test
def setup
setup_bud
@t = make_bud
Expand Down Expand Up @@ -294,7 +294,7 @@ class DbmBootstrap
end
end

class TestDbmBootstrap < MiniTest::Unit::TestCase
class TestDbmBootstrap < Minitest::Test
def setup
setup_bud
@t = make_bud
Expand Down Expand Up @@ -336,7 +336,7 @@ class DbmCycleDelta
end
end

class TestDbmDelta < MiniTest::Unit::TestCase
class TestDbmDelta < Minitest::Test
def setup
setup_bud
@t = make_bud
Expand Down
2 changes: 1 addition & 1 deletion test/tc_delta.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class Delta3JoinTest
end
end

class TestDelta < MiniTest::Unit::TestCase
class TestDelta < Minitest::Test
def test_transitivity
program = DeltaTest.new
program.tick
Expand Down
2 changes: 1 addition & 1 deletion test/tc_errors.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require './test_common'
require 'tempfile'

class TestErrorHandling < MiniTest::Unit::TestCase
class TestErrorHandling < Minitest::Test
class EmptyBud
include Bud
end
Expand Down
4 changes: 2 additions & 2 deletions test/tc_execmodes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class Vacuous
include Bud
end

class ExecModeTest < MiniTest::Unit::TestCase
class ExecModeTest < Minitest::Test
def test_shutdown_em
c = Vacuous.new
c.run_bg
Expand Down Expand Up @@ -227,7 +227,7 @@ class ThreePhase
end
end

class TestPause < MiniTest::Unit::TestCase
class TestPause < Minitest::Test
def test_pause_threephase
b = ThreePhase.new
q = Queue.new
Expand Down
2 changes: 1 addition & 1 deletion test/tc_exists.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ExistTest
end
end

class TestExists < MiniTest::Unit::TestCase
class TestExists < Minitest::Test
def test_conv
p = ExistTest.new
p.run_bg
Expand Down
2 changes: 1 addition & 1 deletion test/tc_halt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Halts
end
end

class TestHalt < MiniTest::Unit::TestCase
class TestHalt < Minitest::Test
def test_halt
program = Halts.new
program.run_bg
Expand Down
2 changes: 1 addition & 1 deletion test/tc_inheritance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class ChildBud < ParentBud
end
end

class TestSubclass < MiniTest::Unit::TestCase
class TestSubclass < Minitest::Test
def test_override
p1 = ParentBud.new
p2 = ChildBud.new
Expand Down
2 changes: 1 addition & 1 deletion test/tc_interface.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class SimpleClient
include SelectiveMembership
end

class InterfaceTest < MiniTest::Unit::TestCase
class InterfaceTest < Minitest::Test
def test_basic
c = SimpleClient.new
c.run_bg
Expand Down
12 changes: 6 additions & 6 deletions test/tc_joins.rb
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ class Issue313
end
end

class TestJoins < MiniTest::Unit::TestCase
class TestJoins < Minitest::Test
def test_combos
program = CombosBud.new
program.tick
Expand Down Expand Up @@ -570,7 +570,7 @@ class TestJoinLocalPreds
end
end

class TestLocalPredJoins < MiniTest::Unit::TestCase
class TestLocalPredJoins < Minitest::Test
def test_explicit
assert_raises(Bud::CompileError) {p = TestJoinLocalPreds.new; p.tick}
# assert_equal([ [[1,1], [3,3]], [[2,3], [3,3]] ], p.t3.to_a.sort)
Expand All @@ -594,7 +594,7 @@ class Issue192
end
end

class TestIssue192 < MiniTest::Unit::TestCase
class TestIssue192 < Minitest::Test
def test_192
p = Issue192.new
p.intab1 << [-1]
Expand All @@ -605,7 +605,7 @@ def test_192
end
end

class TestIssue220 < MiniTest::Unit::TestCase
class TestIssue220 < Minitest::Test
class TripleJoin
include Bud
state do
Expand Down Expand Up @@ -670,7 +670,7 @@ class OjMultipleRelsError
end
end

class TestOuterJoins < MiniTest::Unit::TestCase
class TestOuterJoins < Minitest::Test
def test_oj_channel
o = OjChannel.new
o.run_bg
Expand Down Expand Up @@ -794,7 +794,7 @@ class TestOuterJoinReplay
end

# Issue #276 and related bugs
class RescanTests < MiniTest::Unit::TestCase
class RescanTests < Minitest::Test
def test_scan_replay
i = TestScanReplay.new
i.t1 <+ [[4, 8]]
Expand Down
4 changes: 2 additions & 2 deletions test/tc_labeling.rb
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ class RollHG
include HalfGuard
end

class TestBlazes < MiniTest::Unit::TestCase
class TestBlazes < Minitest::Test
def test_label1
r = RolledUp.new
r.tick
Expand Down Expand Up @@ -268,7 +268,7 @@ class FullGuardC
include FullGuard
end

class TestBlazes < MiniTest::Unit::TestCase
class TestBlazes < Minitest::Test
def test_bug
c = BugC.new
c.tick
Expand Down
Loading

0 comments on commit bc1b133

Please sign in to comment.