Last active
February 21, 2018 11:01
-
-
Save kimihito/61bae0b9992e3c89e0c3873b7128f9ca to your computer and use it in GitHub Desktop.
Okinawarb Mob Programming Practice
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'test/unit' | |
class Sample | |
def self.convert(str) | |
1 if str == '一' | |
end | |
end | |
class TestSample < Test::Unit::TestCase | |
def test_one | |
assert_equal 1, Sample.convert('一') | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment