summaryrefslogtreecommitdiff
path: root/sample/testunit/tc_subtracter.rb
diff options
context:
space:
mode:
authorSutou Kouhei <kou@clear-code.com>2021-01-17 06:08:21 +0900
committerSutou Kouhei <kou@clear-code.com>2021-01-17 06:08:21 +0900
commita4a6cb036e4b374a9616cf38f4d8d74ac4478d8d (patch)
treea25bed4ab9c95ca3a1977da172d48f83e5c3cc25 /sample/testunit/tc_subtracter.rb
parentf2767cf09174bfe5340c9269a2fa53f226f97ba8 (diff)
downloadruby-a4a6cb036e4b374a9616cf38f4d8d74ac4478d8d.tar.gz
Remove samples for test-unit
They are no longer needed.
Diffstat (limited to 'sample/testunit/tc_subtracter.rb')
-rw-r--r--sample/testunit/tc_subtracter.rb18
1 files changed, 0 insertions, 18 deletions
diff --git a/sample/testunit/tc_subtracter.rb b/sample/testunit/tc_subtracter.rb
deleted file mode 100644
index d2c8313350..0000000000
--- a/sample/testunit/tc_subtracter.rb
+++ /dev/null
@@ -1,18 +0,0 @@
-# Author:: Nathaniel Talbott.
-# Copyright:: Copyright (c) 2000-2002 Nathaniel Talbott. All rights reserved.
-# License:: Ruby license.
-
-require 'test/unit'
-require 'subtracter'
-
-class TC_Subtracter < Test::Unit::TestCase
- def setup
- @subtracter = Subtracter.new(5)
- end
- def test_subtract
- assert_equal(3, @subtracter.subtract(2), "Should have subtracted correctly")
- end
- def teardown
- @subtracter = nil
- end
-end