Sha256: 36cbddad45d5ad9e9f7de54b75026f19f85c4d93247efb8d2c007f2f46a1a299
Contents?: true
Size: 377 Bytes
Versions: 34
Compression:
Stored size: 377 Bytes
Contents
#!/usr/bin/env ruby require "test/unit" require "tri2.rb" require "rubygems" require "ruby-debug" Debugger.start class TestTri < Test::Unit::TestCase def test_basic debugger solutions = [] 0.upto(5) do |i| solutions << triangle(i) end assert_equal([0, 1, 3, 6, 10, 15], solutions, "Testing the first 5 triangle numbers") end end
Version data entries
34 entries across 34 versions & 5 rubygems